Search code examples
iosobjective-cwatchos-2

watchOS Error: Unknown property in Interface description for controller


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?


Solution

  • Create IBOutlet as property for WKInterfacePicker, you will not get message.

    @property (unsafe_unretained, nonatomic) IBOutlet WKInterfacePicker *sd;