2017-04-07 11 views
1

私は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 
} 

答えて

1

は、これは次のとおりです。

for: <#T##IndexPath#>) 

ちょうどその変数にタブと入力し:

indexPath 
+0

乾杯は、私はそのわずかな方法は、それをコピーして貼り付けたと思います! let cell = tableView.dequeueReusableCell(withIdentifier: "cell"、for:IndexPath)を! CustomCell –

+0

これはエラーが発生する行です。 –

+0

indexPath、indexPathではありません – Mozahler

関連する問題