0
我想为行0获取NSIndexPath。如何找到行0的正确NSIndexPath?我想把它设置在这里:let object = self.fetchedResultsController.objectAtIndexPath(/*the indexPath for row 0*/) as NSManagedObject
你知道我该怎么做,并想帮助我吗?感谢您的回答。索引路径0行
我想为行0获取NSIndexPath。如何找到行0的正确NSIndexPath?我想把它设置在这里:let object = self.fetchedResultsController.objectAtIndexPath(/*the indexPath for row 0*/) as NSManagedObject
你知道我该怎么做,并想帮助我吗?感谢您的回答。索引路径0行
NSIndexPath(forRow: 0, inSection: 0)
是你在找什么。
也许就像'NSIndexPath(forRow:0,inSection:0)'一样简单吗? - 只要你键入'NSIndexPath('在Xcode中,代码完成建议应该弹出。 – 2015-04-03 19:34:29
是的,它的工作原理。如果你把它作为答案发布在这个问题上,我可以接受。谢谢你的帮助! – user3592462 2015-04-04 11:38:55