Is there a way to check if iCloudDrive is enabled or not?

Is there a way to find icloudDrive on or not on the current device? Actually I am facing file sync issue with ios 7 and ios 8 icloud. Right now, I was using UIDocument to upload it to icloud.

Thanks in advance.

+3


source to share


1 answer


id currentiCloudToken = [[NSFileManager defaultManager] ubiquityIdentityToken];

      

"If the user logs out of iCloud, for example by disabling documents and data in the settings, the ubiquityIdentityToken method returns nil . To have your application detect when the user submits and signs an in response, register to change the availability of the iCloud account. In the application startup sequence, add the application object to as an observer of the NSUbiquityIdentityDidChangeNotification notification "



Prepare your app for iCloud

0


source







All Articles