Proper way to resignFirstResponder when a UITableView is touched?
        Posted  
        
            by Topher Fangio
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Topher Fangio
        
        
        
        Published on 2010-05-29T18:18:49Z
        Indexed on 
            2010/05/29
            18:22 UTC
        
        
        Read the original article
        Hit count: 338
        
Hello all,
I have a pretty simple UITableView who's cells contain UITextFields and I need to be able to call resignFirstResponder to hide the keyboard whenever a user touches the UITableView outside of one of the cells.
I have read this question/answer but it seems like a very rudimentary way to achieve this. I have read about a way to do it by converting the UITableView to a UIControl so that you can connect the TouchDown event.
Does anybody know the standard or preferred way to achieve this functionality?
© Stack Overflow or respective owner