These slides are from a talk I did for CocoaHeads Belgium. I talked about how I moved my “B-list” shopping list app for iOS from Core Data to UIDocument for syncing lists with iCloud.
fileURLWithPath:NSHomeDirectory()]; or in iCloud documentURL = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]; → don’t call this on the main thread!
defaultManager]; ! ! url = [fm URLForUbiquityContainerIdentifier:nil]; }); iOS 6 NSFileManager *fm = [NSFileManager defaultManager]; id token = [fm ubiquityIdentityToken]; → you can call this on the main thread