ios - Dynamic textfield not getting cached in TableView didSelectRowAt method
问题描述
Actually, I am implementing a dynamic Question-Answer form in which table cells which load with dynamic fields (like., Drop Down, TextField, GridView, etc.,) For this in the cell I created one label for Question and one blank view to render dynamic content of Answer field. If I clicked on the label or on the cell I am able to reach to didSelectRowAt TableView method but if I clicked on dynamic content (like., Inside textField or on the button) not able to reach on didSelectRowAt. Not getting how to tackle this.
解决方案
Try setting userInteractionEnabled = NO This will avoid all the touch events for that particular control. and the events will be handled by the next responder in chain.
推荐阅读
- c++ - 使用 char* 作为 unordered_map 的键不能识别重复键
- python - plt.savefig 如何在内部处理文件处理程序问题(文件引用打开/关闭)?
- loops - 带条件的 XSLT 1.0 嵌套循环
- javascript - Asp.Net Core 2.1 请求排除客户端cookies
- vuejs2 - 如何在 Vue.js 中创建全局函数?
- python - 在 Python 中编译和与 C DLL 交互适用于 Unix,但不适用于 Windows。这样做的正确方法是什么?
- html - 垂直对齐问题
- python - 使用文本搭配计算 ngram 词频
- java - 没有 Ajax 想打两个 Url
- excel - 尝试合并单元格时出现应用程序或对象定义错误 (1004)