mm2*_*m24 3 watchkit wkinterfacetable ios8.2 wkinterfacecontroller
我有一个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");
}
Run Code Online (Sandbox Code Playgroud)
但是这两种方法都没有被调用.我无法找到WKInterfaceTable的任何协议声明,也没有找到表上的任何委托属性.
这里有什么我想念的吗?
| 归档时间: |
|
| 查看次数: |
1747 次 |
| 最近记录: |