0

I have a UIView which has a UIScrollView subview and is a UIScrollViewDelegate. Since I've implemented viewForZoomingInScrollView I stopped getting pan and pinch events for the UIView.

How can I get these events back?

Ata01
  • 303
  • 4
  • 19

2 Answers2

1

Try adding a delegate to your gesture recognizer that implements

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
    return YES;
}
Edwin Iskandar
  • 4,119
  • 1
  • 23
  • 24
0

try:

[yourviewname setUserInteractionEnabled:YES];


Edit: I just re-read your question. Are you saying that you can't pan and/or pinch? Or are you saying that you aren't being notified when you pan and/or pinch?

BloonsTowerDefence
  • 1,184
  • 2
  • 18
  • 43
  • My problem was that I wasn't notified when the user pinched or panned. Edwin Iskandar's suggestion fixed it. – Ata01 Mar 12 '13 at 17:13