NSUbiquityIdentityDidChangeNotification doesn't work?

后端 未结 2 1426
南方客
南方客 2021-01-24 00:04

I\'m creating a cloudkit app, and have been trying multiple ways to get the NSUbiquityIdentityDidChangeNotification, but I never am able to get this notification.

2条回答
  •  暖寄归人
    2021-01-24 00:26

    To be notified in iOS when a user logs in or out of iCloud while using your app, use CKAccountChangedNotification instead of NSUbiquityIdentityChanged notification.

    (Longer explanation: https://stackoverflow.com/a/38689094/54423.)

提交回复
热议问题