我的桌面视图在按下时没有反应。
当我添加:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("section: \(indexPath.section)")
print("row: \(indexPath.row)")
}
在我按下任何东西之前,它首次在tableview中打印了所有行和部分。但是,在我删除了该代码并再次添加之后,它根本不打印任何内容,即使按下单元格也没有 有人曾经遇到过这个吗?
答案 0 :(得分:0)
如果你的编译器没有显示,你可能之前就错过了覆盖。
.text-span{
background:red;
border-radius:50%;
height: 26px;
width: 26px;
line-height: 26px;
display: inline-block;
text-align: center;
margin-right: 6px;
}
答案 1 :(得分:0)
这是代表问题。除了UITabBarDelegate
之外,我还以某种方式设置了UITableViewDelegate
这搞砸了。移除UITabBarDelegate
后,一切正常。谢谢。