【发布时间】:2015-11-24 15:06:14
【问题描述】:
我有这堆代码
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
cell.textLabel?.text = toDoList[indexPath.row] //will give us the 0th, 1st, 2nd etc..
return cell
有人可以向我解释第一行中的“indexPath”是什么吗?
【问题讨论】:
标签: swift tableview nsindexpath