iPhone Mapkit Blue Dot / User Location Region Zoom Question

Posted by user290031 on Stack Overflow See other posts from Stack Overflow or by user290031
Published on 2010-03-09T22:02:35Z Indexed on 2010/03/31 15:23 UTC
Read the original article Hit count: 723

Filed under:
|
|

Hey All,

Is is possible to set a region based on a current location in a mapview only one time. I want my iphone app to get the current location, zoom into that current location, and then allow the user to scroll around. However, because my setRegion code is in my didUpdateToLocation function, every time the current location is updated, so is the region, and I can't scroll around on the map. I tried putting this setRegion code in the viewDidLoad function, but the user's current location isn't initialized at this point, so it doesn't work right.

Any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about mapkit