第 0 行的索引路径
IndexPath for row 0
我想获取第 0 行的 NSIndexPath。如何找到第 0 行的正确 NSIndexPath?我想在这里设置它:let object = self.fetchedResultsController.objectAtIndexPath(/*the indexPath for row 0*/) as NSManagedObject
你知道我该怎么做并且愿意帮助我吗?感谢您的回答。
NSIndexPath(forRow: 0, inSection: 0)
就是您要找的。
我想获取第 0 行的 NSIndexPath。如何找到第 0 行的正确 NSIndexPath?我想在这里设置它:let object = self.fetchedResultsController.objectAtIndexPath(/*the indexPath for row 0*/) as NSManagedObject
你知道我该怎么做并且愿意帮助我吗?感谢您的回答。
NSIndexPath(forRow: 0, inSection: 0)
就是您要找的。