Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 726
Lee Armstrong Avatar asked Nov 07 '10 16:11

Lee Armstrong


1 Answers

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.

like image 193
pho0 Avatar answered Sep 20 '22 20:09

pho0