I do not want any code but want to get reference for MKMapView compass rotation as shown in http://vimeo.com/7970239.
Can anyone tell me that is it possible or not?
Please help me to solve this problem..
Thanks in advance…
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.
It is certainly possible, here is the very line that makes it work:
[self.map setTransform:CGAffineTransformMakeRotation(-1 * newHeading.magneticHeading * M_PI / 180)];In order to receive the heading events, you need to create a
CLLocationManagerand do[locationManager startUpdatingHeading];Hope it helps you