开发者

UITextField is not responding

开发者 https://www.devze.com 2023-03-27 04:06 出处:网络
I\'m experiencing some problems with UITextField inside a UITableViewCe开发者_StackOverflowll. Things are working well until I open the iOS media player, watch a short movie and going back to my view.

I'm experiencing some problems with UITextField inside a UITableViewCe开发者_StackOverflowll. Things are working well until I open the iOS media player, watch a short movie and going back to my view.

Then, I'm trying to click on the UITextField, but nothing happens and it does not responds to my clicks.

In the same screen (it's a UITableView), I have a switch button (in another row), which is working fine after switching views.

My view is implementing the UITextFieldDelegate protocol and textFieldShouldReturn in particular. My implementation of textFieldShouldReturn is a simple call to : [textField resingFirstResponder]

I'll appriciate any thoughts or ideas why it happens and how to solve it.

Thanks! koby


I had this same problem, what fixed it for me was to make sure to return the correct height for the table view cell. Check your heightForRowAtIndexPath function - even though you can see all the objects in your cell they may be outside of a clickable/tappable area.

0

精彩评论

暂无评论...
验证码 换一张
取 消