How to follow user location with MapKit
Posted
by Bloudermilk
on Stack Overflow
See other posts from Stack Overflow
or by Bloudermilk
Published on 2010-03-14T01:09:08Z
Indexed on
2010/03/14
1:15 UTC
Read the original article
Hit count: 754
I'm using MapKit to display the user's location relative to pins around them. I'd like to be able to mimic the functionality that Maps provides via the crosshair button in the lower left-hand corner of the screen. I'm already aware that MapKit provides a CLLocation object with the user's location via MKUserLocation, I just wanted to seek advice on how I should keep focus on that location. My initial inclination was to use an NSTimer to center the map on that coordinate every 500ms or so.
Is there a better way to do this? Is there something built in to MapKit that I'm missing that will accomplish this?
Thanks so much, Brendan
© Stack Overflow or respective owner