代码之家  ›  专栏  ›  技术社区  ›  RGM-79FP GM Striker

让indexPath=NSIndexPath(forRow:0,inSection:0)[duplicate]的替代方法

  •  1
  • RGM-79FP GM Striker  · 技术社区  · 10 年前

    在xcode 8中,似乎不需要

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

    swift 3中的新方法是什么?

    1 回复  |  直到 10 年前
        1
  •  2
  •   Luke    10 年前

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