I'm developing coredata with icloud. i have problem with this. coredata with icloud works fine except sync notification~ my code here~
NSNotificationCenter.defaultCenter().addObserver(self,
selector: "changedDataOniCloud:",
name: NSPersistentStoreDidImportUbiquitousContentChangesNotification,
object: nil)
and suppose to receive sync notification with below,
func changedDataOniCloud(notification: NSNotification) {
self.textView.text = "changedDataOniCloud"
}
I have iPhone and iPad. if changed data in iphone, then ipad get sync data and changes notification have to responds. sync data works fine, but notification not working!
please check my project in github https://github.com/beauspiring/ios/blob/coredata_icloud/Example/ViewController.swift (branch: coredata_icloud)