Apple documentation says "Also, iOS automatically forwards a read-only copy of your iOS app’s preferences to Apple Watch. Your WatchKit extension can read those preferences using an NSUserDefaults object...". https://developer.apple.com/library/prerelease/watchos/documentation/General/Conceptual/WatchKitProgrammingGuide/SharingData.html#//apple_ref/doc/uid/TP40014969-CH29-SW1
But I can't read defaults in my WatchKit app that were saved in my iPhone app, am I doing something wrong?
In the WatchKit app, can I even save to (a WatchKit only) defaults, or does that not even work?
iPhone Data:
let defaults = NSUserDefaults.standardUserDefaults()
defaults.setObject(dataArray, forKey: "DataSaved"
Watch ExtensionDelegate:
let defaults = NSUserDefaults.standardUserDefaults()
print(defaults.arrayForKey("DataSaved"))
print(defaults.objectForKey("DataSaved"))
arrayForKey and objectForKey for print nil.
I must be doing something wrong, do you know what it would be?