watchOS 2: setting properties on initial Interface Controller watchOS 2: setting properties on initial Interface Controller swift swift

watchOS 2: setting properties on initial Interface Controller


You might move your code to applicationDidBecomeActive.

This page describes the states of watch apps. When applicationDidFinishLaunching is invoked, the app is in an inactive state.

https://developer.apple.com/library/watchos/documentation/WatchKit/Reference/WKExtensionDelegate_protocol/index.html


If you are calling this from within another interface controller, try move the WKExtension.sharedExtension().rootInterfaceController to the willActivate() function. It seems like if it is in the awake() function it sometimes works but is unreliable.