//1. Add UIGestureRecognizerDelegate to your interface:
@interface DocumentViewControler : UIViewController <UIGestureRecognizerDelegate>
//2. Add to viewDidLoad
- (void)viewDidLoad {
[super viewDidLoad];
UITapGestureRecognizer* singleTap=[[UITapGestureRecognizer
alloc]initWithTarget:self action:@selector(handleSingleTap:)];
singleTap.numberOfTouchesRequired=1;
singleTap.delegate=self;
[self.webView addGestureRecognizer:singleTap];
[singleTap release];
}
//3. Add:
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
*)otherGestureRecognizer {
return YES ...
read more