编辑器占位符在简单的UITableView源文件错误

问题描述:

我是Swift的新手,也没有开发背景经验。我想在Swift中使用简单的表格视图,但在源文件中不断收到编辑器占位符错误。编辑器占位符在简单的UITableView源文件错误

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 
    let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: <#T##IndexPath#>) as! CustomCell 

    cell.photo.image = images[indexPath.row] 
    cell.Name.text = names[indexPath.row] 
    cell.Job.text = jobs[indexPath.row] 

    return cell 
} 

这是你的问题是:

for: <#T##IndexPath#>) 

只是标签,该变量并键入:

indexPath 
+0

干杯我认为它只是它的方式复制和粘贴! let cell = tableView.dequeueReusableCell(withIdentifier:“cell”,for:IndexPath)as! CustomCell –

+0

这是我得到错误的线!!! –

+0

indexPath,而不是IndexPath – Mozahler