Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 719
Nagendra Avatar asked Jul 30 '15 04:07

Nagendra


1 Answers

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

@property (unsafe_unretained, nonatomic) IBOutlet WKInterfacePicker *sd;
like image 187
Vishnuvardhan Avatar answered Sep 23 '22 00:09

Vishnuvardhan