Yes, this should definitely work.
Ensure that User Interaction Enabled is set to the view that this controller corresponds to.
If the view is loaded from nib / xib, make sure that the File Owner is set to the appropriate class name and that the File Owner view output is connected to the appropriate view.
Update. I also see this behavior using an application based on the Nav-based application template, but it works with the View-based application template as expected.
I think that in the case of a navigation controller, the table view built into the view controller receives the event before the view controller. See UIView Link (highlighted by me):
View controllers themselves are descendants of the UIResponder class and are inserted into the responder chain between the managed root view and its supervision, which usually refers to a different kind of controller. If the view of the view manager does not handle the event , the view controller itself has the ability to process the event before passing this event in observing mode.
This means that the view has the first chance to handle the event, and if that happens, the view controller will not receive it.
Itβs not clear what you are trying to accomplish, so Iβm not sure which solution to offer.
zpasternack
source share