-2
私はテーブルビューを使用しようとしているとFUNCに:Cannot convert value of type 'IndexPath.Type' to expected argument type 'IndexPath'
は、型の値が期待引数の型に「IndexPath.Type」に変換できません「IndexPath」
私のコードは次のとおりです:
cellForRowAt
私はエラーを取得します
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cellDish:DishTableViewCell = tableView.dequeueReusableCell(withIdentifier: "cellDish", for: IndexPath) as! DishTableViewCell
return cellDish
}
for:indexPathです。 'IndexPath'の代わりに' indexPath'小文字の 'i'パラメータを使用してください。 – vacawama
ありがとう!できます –