MKMapView within UITableView

Posted by john-london on Stack Overflow See other posts from Stack Overflow or by john-london
Published on 2010-04-16T10:47:27Z Indexed on 2010/04/16 10:53 UTC
Read the original article Hit count: 554

I have a MKMapView within a UITableviewCell and I want to be able to disable scrolling of the table view when the user starts to drag within the map view.

My plan had been to override the MKMapView touchesBegan/Moved etc methods and if they were called to then disable scrolling in the parent view. Scrolling in the parent view would be enabled again only when the touches in the MKMapView ended or were cancelled.

My problem is that the touchesBegan/Moved methods inside MKMapView are not called - the problem is also discussed here: stackoverflow discussion.

My table view is within a tab control, so I don't think I can extend UIWindow the way they describe, as there are several views that could be within the window, depending on which tab is active.

How can I access the MKMapView touch events please?

© Stack Overflow or respective owner

Related posts about mkmapview

Related posts about uitableview