Taking the lead from Apple's ScrollSuite component, TapToZoom, the call to:
Code:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleDoubleTap:)];
// ...
[myView addGestureRecognizer:doubleTap];
should be in UIViewController's -loadView.
However, Apple's example had only one UIView controlled by UIViewController ... and I have many sub-views. So, I placed the above UITapGestureRecognizer call in my -viewDidLoad as such
Code:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleDoubleTap:)];
// ...
[self.view addGestureRecognizer:doubleTap];
Okay, the Console states this call happens; but the Console also states that the call to the selector, handleDoubleTap:, never happens (using the IPad Simulator).
Does anyone have an idea here??