Xcode 6 iOS 8 iCloud core data setup

iOS 8 Solution: OK…then….lol. I think I solved it. New discovery. After skimming through this page: http://www.tuaw.com/2014/09/17/psa-do-not-upgrade-to-icloud-drive-during-ios-8-installation/ It says: iCloud Drive is Apple’s new and improved iCloud syncing and file storage feature that allows you to share documents between your iOS 8 devices and your Mac running OS X 10 Yosemite. So, I decided to …

Read more

Check if User is Logged into iCloud? Swift/iOS

If you just want to know if the user is logged in to iCloud, the synchronous method can be used: if FileManager.default.ubiquityIdentityToken != nil { print(“iCloud Available”) } else { print(“iCloud Unavailable”) } If the ubiquityIdentityToken is nil and you’d like to know why iCloud isn’t available, you can use the asynchronous method: CKContainer.default().accountStatus { …

Read more

How do I delete a CloudKit container?

Apple’s iOS CloudKit documentation: Enable iCloud and Select CloudKit Important: When you select CloudKit, Xcode creates a default container ID based on the bundle ID. Because you can’t delete iCloud containers, verify that your bundle ID is correct in the General pane in Xcode before selecting CloudKit. To change your bundle ID, read Set the …

Read more

CoreData + iCloud + Cascade Delete – how to handle?

From experience, listening to notifications other than NSManagedObjectContextDidSaveNotification is a big mess and can lead to relying on properties not yet updated. The detail view controller should listen to NSManagedObjectContextDidSaveNotification notifications, which are thrown after cascade is applied. You can then check by several means if the current object is valid or not (you can …

Read more