How to check if a user can log into CloudKit?

Can I use the same iCloud accessibility check method, or is there another CloudKit accessibility check method?

+7
ios ios8 icloud cloudkit
source share
1 answer

The CKContainer class has a method called accountStatusWithCompletionHandler: designed for this purpose. Call it and check out CKAccountStatusAvailable . You still need to listen to NSUbiquityIdentityDidChangeNotification if the status changes.

+8
source share

All Articles