resignFirstResponder when tapping UITableView?
Posted
by Canada Dev
on Stack Overflow
See other posts from Stack Overflow
or by Canada Dev
Published on 2009-10-19T23:41:13Z
Indexed on
2010/03/16
18:21 UTC
Read the original article
Hit count: 185
I have a UITableView
with two custom cells and each of them has a subview with a UITextField
inside it. I have tried adding a UIButton
on top of the UITableView
and have it resignFirstResponder
but that just means you won't be able to tap anywhere else - not even on the UITextFields
to enter text.
How do I make it so if I tap outside those two UITextFields
, I can call resignFirstResponder, so the user can get back to the other cells?
Thanks
© Stack Overflow or respective owner