让indexPath = NSIndexPath的替代方案(forRow:0,inSection:0)

时间:2016-08-30 13:58:04

标签: ios swift xcode nsindexpath

似乎在xcode 8中它没有采用

let indexPath = NSIndexPath(forRow: 0, inSection: 0)

在swift 3中执行此操作的新方法是什么?

1 个答案:

答案 0 :(得分:2)

在Swift 3中:IndexPath(row: 0, section: 0)