watchOS Error: Unknown property in Interface description for controller

拜拜、爱过 提交于 2019-12-10 03:32:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!