Search code examples
iphonemkmapview

MKMapView regionDidChangeAnimated not always called!


This is frustrating me!!!

It will be called most of the time but then it stops responding to the pinches. It will be called on a screen rotate and a double tap. Not to a pinch!

Help!


Solution

  • I was working on some code that had the same issue and turns out the problem was a subview with a UIGestureRecognizer had been added as a subview to MKMapView, and sometimes, they would cause some delegate methods not to fire.

    So make sure you aren't adding subviews or anything to the MKMapView.

    Hope this helps.