WKInterfaceTable的didSelectRowAtIndex永远不会在WKInterfaceController中被调用

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的任何协议声明,也没有找到表上的任何委托属性.

这里有什么我想念的吗?

mm2*_*m24 5

我发现该方法从未被调用过,因为我在"接口"构建器上选择了行时设置了一个segue.

似乎通过在设置委托后没有委托和表协议,它会停止调用didSelectRow方法.