8

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?

Pang
  • 9,564
  • 146
  • 81
  • 122
Nagendra
  • 357
  • 2
  • 13

1 Answers1

10

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

@property (unsafe_unretained, nonatomic) IBOutlet WKInterfacePicker *sd;
Vishnuvardhan
  • 5,081
  • 1
  • 17
  • 33