Ошибка 0- Как я могу решить этот вопрос и почему у него есть проблемы?UITableViewCell 'не имеет статуса' dequeueReusableCellWithIdentifier '
class ViewController: UIViewController , UITableViewDataSource {
@IBOutlet weak var tableView: UITableViewCell!
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
return 20
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = self.tableView.dequeueReusableCellWithIdentifier("todoCell") as! UITableViewCell
return cell
}
}
В сообщении об ошибке сообщается, что 'self.tableview' возвращает объект' UITableViewCell' и что 'UITableViewCell' не имеет члена' dequeueReusableCellWithIdentifier'. – Blackwood