从RoboVM中的indexPath获取行



我正在尝试在robovm中编写以下objective-c代码:

   (NSIndexPath *)indexPath = ...;
   cell.textLabel.text = [tableData objectAtIndex:indexPath.row];

然而,当我查看RoboVM对NSIndexPath的调用时:
https://github.com/robovm/robovm/blob/e60579613140f4a6d48f108042633fbf17b9c289/cocoatouch/src/main/java/org/robovm/apple/foundation/NSIndexPath.java

或通过滚动Eclipse的选项,我没有看到任何与row对应的内容。我能做什么?

我对RoboVM没有经验。然而,indexPath.sectionindexPath.row只是

的方便方法/属性。
[indexPath indexAtPosition:0] // section
[indexPath indexAtPosition:1] // row

indexAtPosition:方法是在Java类中定义的

最新更新