override func tableView(_ tableView: UITableView,cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell( withIdentifier: "ChecklistItem", for: indexPath as IndexPath)
return cell }
有一个错误说:方法不会从其超类覆盖。我已经删除了“覆盖”,但仍然无法正常工作。这些是一本书的源代码,据说这是正确的语法。所以我想知道为什么我有这个错误?
快速 3
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell( withIdentifier: "ChecklistItem", for: indexPath)
return cell
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句