当我运行下面的代码时,方法rowControllerAtIndex
返回WKInterfaceTable
nil。
[self.outletTable setNumberOfRows:numberOfCategoriesToShow withRowType:@"rowTypeLabel"];
RowControllerTypeLabel *theRow = [self.outletTable rowControllerAtIndex:rowInTable];
我检查过的内容:
- 我已经在情节提要中的行和
RowControllerTypeLabel
. - 我已将
Custom Class
我的标签字段设置为我的自定义类RowControllerTypeLabel
。 - 我还在故事板中的表格和我的界面控制器的界面中的相应属性之间建立了联系。
我错过了什么?