UITextField is not responding
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.
精彩评论