问题
I added a WKInterfacePicker to the storyboard and connected it to an IBOutlet in the interface controller. While running the application, it shows an error message in the console:
Unknown property in Interface description ('watchPicker') for controller
Code:
@interface InterfaceController()
{
__unsafe_unretained IBOutlet WKInterfacePicker *watchPicker;
}
@end
How can I fix it?
回答1:
Create IBOutlet as property for WKInterfacePicker, you will not get message.
@property (unsafe_unretained, nonatomic) IBOutlet WKInterfacePicker *sd;
来源:https://stackoverflow.com/questions/31715309/watchos-error-unknown-property-in-interface-description-for-controller