【发布时间】:2016-06-22 13:52:04
【问题描述】:
我已将代码更新为 swift 3.0,并在以下行收到警告:
func tableView(_ tableView: UITableView, cellForRowAtIndexPath indexPath: IndexPath) -> UITableViewCell {
当我尝试使用每个建议以使用 @nonobjc 使警告静音或将其设为私有函数时,表不再加载。
错误显示:
实例方法 'tableView(:cellForRowAtIndexPath:)' 几乎匹配协议 'UITableViewDelegate' 的可选要求 'tableView(:canFocusRowAt:)'
有谁知道导致此错误的原因以及如何解决?
非常感谢!
【问题讨论】:
标签: swift uitableview swift3