WKInterfaceLabel setTextColor: does not work outside of awakeWithContext: (6.2b4)

Originator:benchatelain
Number:rdar://19582242 Date Originated:2015-01-23
Status:Closed Resolved:Resolved in 6.2b5
Product:WatchKit SDK Product Version:Xcode 6.2 beta 4 (6C107a), iOS Simulator 8.2 (553.8)
Classification:Other Bug Reproducible:Always
 
Description:
Changing the text color on an WKInterfaceLabel outside of the awakeWithContext: method has stopped working as of WatchKit 8.2 beta 4. 

Steps to Reproduce:
1. Create a WatchKit project
2. Add an Interface Controller scene to the watch app’s storyboard
3. Create a custom WKInterfaceController subclass called MYInterfaceController and set its class name in the Class field in the identity inspector for the above scene
4. Add a WKInterfaceLabel to the scene
5. Control+drag from the new label to the MYInterfaceController class in the assistant editor
6. Name the new outlet connection “myLabel"
7. Set the text color on the new label to blue in the attributes inspector
8. Add an awakeWithContext: override to MYInterfaceController, and include the following line of code:
    [self.myLabel setTextColor:[UIColor yellowColor]];
9. Add a context menu to MYInterfaceController in the storyboard, configure one menu item to call a new IBAction method
10. In the IBAction method add the following line of code:
    [self.myLabel setTextColor:[UIColor redColor]];

Expected Results:
When the scene loads on the Apple Watch simulator, the label should show text in yellow. When the context menu button is tapped, the label color should change to red.

Actual Results:
The label color is yellow, even after tapping the menu button which should change it.

Configuration: (hardware)
iMac 27-inch, Late 2012

Version & Build:
Xcode 6.2 beta 4 (6C107a)
iOS Simulator 8.2 (553.8)
OS X 10.10.2 seed 5 (14C106a)

Regression:
Not an issue in Xcode 6.2 beta 3 (6C101) / iOS Simulator 8.2 (553.8). The label color changes correctly.

Comments

Thread in Dev Forums

https://devforums.apple.com/message/1095674#1095674

By benchatelain at Jan. 23, 2015, 9:30 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!