RowControllerTypeLabel

RowControllerTypeLabel

当我运行以下代码时,rowControllerAtIndexWKInterfaceTable方法返回nil。

[self.outletTable setNumberOfRows:numberOfCategoriesToShow withRowType:@"rowTypeLabel"];
RowControllerTypeLabel *theRow = [self.outletTable rowControllerAtIndex:rowInTable];

我检查过的内容:
  • 我已在 Storyboard 中的行与RowControllerTypeLabel界面中的相应属性之间建立了连接。
  • 我已将标签的字段Custom Class设置为我的自定义类RowControllerTypeLabel
  • 我还在 Storyboard 中的表与接口(interface) Controller 接口(interface)中的相应属性之间建立了连接。

  • 我想念什么?

    最佳答案

    我忘记在“属性”检查器中设置行 Controller 的标识符rowTypeLabel

    我希望这篇文章可以帮助其他人在比我需要的时间短的时间内找到问题。

    08-05 17:46