views:

147

answers:

1

I would like to hide the navigation bar, status bar, and tab bar when a user taps anywhere on the screen. The view for this tab is a tableview but the cells are inactive (they store images and text and do not perform any actions).

Is there a method for detecting touches on the screen of a tableview?

Thanks in advance for your help!

+2  A: 

I'm at work so I can't verify this, but UITableView is a subclass of UIResponder. You should be able subclass UITableView and override -touchesEnded:withEvent: and do whatever you want from there.

Hope that helps.

criscokid
Thanks! I'll give this a try.
Jonah