I want to make an application that will need userLocati开发者_JS百科on, but MkMapView.userLocation is just readonly, can't be change. how can I use it? can I setting userLocation like myMap.userLocation=MyCurrentLocation;
any code I need to make it easy?
You need CLLocationManager to get the current location of the user updated. The locationManager:didUpdateToLocation:fromLocation: method of CLLocationManagerDelegate will update you the current user location.
You may follow this tutorial to learn to implement it.
精彩评论