See this question on stack overflow:
When you add a MKMapView (or UIScrollView) to a parent UIScrollView, the control hits the method:
even if it the control isn't being used.
To replicate this, add a control to a simple one view window. Then add the following code to the viewDidLoad:
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)];
[scrollView setAutoresizingMask:UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
// Make the content size large to allow scroll view to move
[scrollView setContentSize:CGSizeMake(1000, 2000)];
double mapHeight = 200;
MKMapView *map = [[MKMapView alloc] initWithFrame:CGRectMake(0, 200, self.view.bounds.size.width, mapHeight)];
This causes the bug to be reproduced. Contact me and I can send you a sample project which reproduces it.
If you already have a sample project, would definitely appreciate it: firstname.lastname@example.org
I'll take a look as soon as I can.
Thank you - I've mailed the sample project to you now. Let me know if you don't get it.
Fix for issue #11, handling gesture recognizers for non-controlled vi…
Apologies for the delay. Basically, as a UIView category, DAKeyboardControl was intercepting some UIGestureRecognizer delegate methods from other views, even when you hadn't activated DAKeyboardControl on them.
Added a sanity check to prevent this interception. Thanks for pointing it out!
Thanks for the fix! Appreciate it.