首页 > 解决方案 > 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.

标签: iosswift

解决方案


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.


推荐阅读