I want to make an application that will need userLocation, 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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.