Is there a way to check if iCloudDrive is enabled or not?
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 "
0
source to share