My question is somehow related to this one. But with iOS7 I wonder if there is a simpler way to do it.
So basically I have a MKMapView
working with a parallax effect, much like the Foursquare app.
So how can I zoom all the Annotations on the visible rect of the MKMapView
?
Right now I have a working solution, that uses some values to offset the latitude of my annotations, but I find it very weird to do it.
Detail:
In order to give the map a parallax effect (when you are scrolling on the UITableView
, the map is scrolling as well), you need to keep a part of the map bellow the table. In my case the frame
of my MKMapView
is (0 -120; 320 390)
and the visible frame of it is (0 0, 320 150);
. So the goal here is to be able to show the annotations (zoom in) on that visible frame
.