バージョン
swift3.0
xcode 8.0
todoCellという識別子を使って再利用可能なセルを取得しようと試みてプログラムを書いているのですが、このようなエラーが出て困っています。
'NSIndex' is not implicitly convertible 'IndexPath': did you mean to use 'as' to expliciltly conver?
自分が書いてみたプログラムはこちらです
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath:
NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "todoCell", for: indexPath)
}
書式が間違っているのか根本的なエラーなのかがわかりません。
是非とも解決策を。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。