UITableView 不知何故变得不可点击
我有一个正在运行的 UITableView,其单元格中填充了标题、副标题和图像,这些内容运行良好,可以单击以将某些内容打印到控制台。
在更改应用程序的其他方面时,我或我的合作伙伴一定以某种方式搞砸了一些事情,因为当触摸正确的按钮时,表格视图仍然会出现,并像以前一样填充图像和标题,但它已经变得完全没有响应。
单击时图块不会变成蓝色,不会打印任何内容,并且拖动时表格视图甚至不会滚动,因此就像对所有触摸事件完全没有响应一样。
我已经尝试并试图找出发生了什么,但没有运气......是否有任何常见错误或我可能错过的联系会导致这种情况?
I had a working UITableView whose cells are populated with a title, subtitle, and image that was working great and could be clicked on to print something to the console.
In changing other aspects of the app, I or my partner must have somehow messed something up because the table view will still come up when the correct button is touched and gets populated with image and titles as before, but it has become completely unresponsive.
The tiles won't turn blue when clicked, nothing is printed, and the table view won't even scroll when dragged so it's like the is completely unresponsive to all touch events.
I've tried and tried to find out what happened but no luck... Are there any common mistakes or connections I could be missing that would cause this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到 IB 并检查是否选中了
用户交互已启用
。必须启用它。如果您要通过代码创建电视,请将userInteractionEnabled
属性设置为YES
Go to IB and check if
User Interaction enabled
is checked. It must be enabled. If you're creating the TV from code, set theuserInteractionEnabled
property toYES