Touch events on UITableView?
问题 I have UIViewController and UITableView as child in the view, what I want to do is when I touch any row I am displaying a view at bottom. I want to hide that view if the user touch any where else then rows or the bottomView. The problem is when I click on UITableView it doesn't fires touchesEnded event. Now how can I detect touch on UITableView and distinguish it with row selection event. Thanks. 回答1: No need to subclass anything, you can add a UITapGestureRecognizer to the UITableView and