我有一个WKInterfaceController,我添加了一个表如下:WKInterfaceTable的didSelectRowAtIndex不会被调用在WKInterfaceController
// .h
@interface InterfaceController : WKInterfaceController
@property (weak, nonatomic) IBOutlet WKInterfaceTable *table;
@end
// .m
- (void)table:(WKInterfaceTable *)table didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSLog(@"did select");
}
- (void)table:(WKInterfaceTable *)table
didSelectRowAtIndex:(NSInteger)rowIndex{
NSLog(@"did select new");
}
然而无论这两种方法被调用。我无法找到WKInterfaceTable的任何协议声明,也无法找到表上的任何委托属性。
有什么,我在这里失踪?