IOS Tap Gesture in a UIScrollview?

The most likely cause is that you forgot to set the delegate of the tap gesture recognizer e. G messagesTap setDelegate:self Assuming messagesBucketTap: is declared in the same class, Change your code to: UITapGestureRecognizer *messagesTap = UITapGestureRecognizer alloc initWithTarget:self action:@selector(messagesBucketTap:); messagesTap setDelegate:self; messagesTap setNumberOfTapsRequired:1; messagesTap setNumberOfTouchesRequired:2; self. MessagesSnippet addGestureRecognizer:messagesTap; messagesTap release If this doesn't work, check what Jamie said, and make sure you are declaring: (void)messagesBucketTap:(UITapGestureRecognizer *)gestureRecognizer and not (void)messagesBucketTap Also, are you tapping once with two fingers?

Lastly, ensure that that userInteractionEnabled is YES on the UIView's and that exclusiveTouch is NO on the UIScrollView.

The most likely cause is that you forgot to set the delegate of the tap gesture recognizer e.g. MessagesTap setDelegate:self. Assuming -messagesBucketTap: is declared in the same class, Change your code to: UITapGestureRecognizer *messagesTap = UITapGestureRecognizer alloc initWithTarget:self action:@selector(messagesBucketTap:); messagesTap setDelegate:self; messagesTap setNumberOfTapsRequired:1; messagesTap setNumberOfTouchesRequired:2; self. MessagesSnippet addGestureRecognizer:messagesTap; messagesTap release; If this doesn't work, check what Jamie said, and make sure you are declaring: - (void)messagesBucketTap:(UITapGestureRecognizer *)gestureRecognizer; and not - (void)messagesBucketTap; Also, are you tapping once with two fingers?

Lastly, ensure that that userInteractionEnabled is YES on the UIView's and that exclusiveTouch is NO on the UIScrollView.

I am new to iOS development and facing a strange problem. I am developing a tabbed iOS app. In one of the tab it loads a UIWebView.

I have added a tap gesture on UIImageView and add it in UIScrollView. This UIScrollView is part of UIWebView. Tap gesture opens up a keyboard.

The problem is that when I comes to this tab and try to navigate to another tab it opens up the keyboard on tab click instead of moving to the clicked tab. Means the tap gesture is calling on tab click as well. When I scroll the web view to top so that it will no more remains before tab then it works properly.

I am adding tap gesture on UIImageView in following way.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions