class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
//ekran ilk yüklendiğinde yapılacak işlemler
override func viewDidLoad() {
super.viewDidLoad()
}
//-------------------------------------------
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
//Tableview data source için
//tableview satır sayısı
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
return 5
}
//------
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCell(withIdentifier: "myCell", for: <#T##IndexPath#>)
cell.textLabel?.text = "Tablolama yaptım bu arada canberkin amk"
return cell
}
//--------------------------------------------------
}
我对这段代码犯了错误= `let cell = tableView.dequeueReusableCell(withIdentifier:&#34; myCell&#34;,for:&lt; #T ## IndexPath#&gt;)