Global Variable

NSUbiquityIdentityDidChangeNotification

Sent after the iCloud (“ubiquity”) identity has changed.

Declaration

const NSNotificationName NSUbiquityIdentityDidChangeNotification;

Discussion

The system generates this notification when the user logs into or out of an iCloud account or enables or disables the syncing of documents and data. This notification is your cue to update caches and any interface elements displaying iCloud–related content. For example, hide all references to iCloud files when the user logs out of iCloud.

When your app receives this notification, get the new token from the NSURLRelationship property. The value of that token is nil if the user disabled iCloud or logged out. There is no userInfo dictionary.