Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // viewDidLoad()
  2. mapview.showUserLocation = true
  3. mapView.userTrackingMode = RMUserTrackingModeFollow // This makes the map focus on the user point
  4.  
  5. // mapView didUpdateUserLocation()
  6. mapView.zoom = 14
  7. mapView.centerCoordinate = userLocation.location.coordinate
  8. mapView.userTrackingMode = RMUserTrackingModeNone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement