无法在 UITableview 中的单元格内单击 UIButton
本文介绍了无法在 UITableview 中的单元格内单击 UIButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
已经搜索了一些可能的修复方法,但都没有解决我的问题.
searched already some possible fixes but all did not solve mine.
我一直点击 uitableview 中的单元格而不是其中的按钮.
i keep clicking the cell in the uitableview rather than the buttons inside it.
这是我的代码:
我还尝试了按钮的 UITapGestureRecognizer
,但仍然无法正常工作.
I also tried the UITapGestureRecognizer
for the buttons and still not working.
谢谢.
推荐答案
我只是对这个问题感到困惑....
I'm just baffled by this issue....
我设法在一个项目上解决了这个问题:
I managed to fix this problem by doing this on one project:
但同样的方法不适用于不同的项目.我不知道为什么...
but the same did not work for a different project. I have no idea why...
这篇关于无法在 UITableview 中的单元格内单击 UIButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!