How to rotate MKMapView and keep the Annotation and the view don't rotate?
问题 I am making an MKMapView that shows the user's current location. I want to rotate the map like the Google Maps App without rotating the annotations. Im using the following code -(void) locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading{ mapView.transform=CGAffineTransformMakeRotation(-1*newHeading.magneticHeading*3.14159/180)}; but the whole view is rotated like this image. The image of the problem in my app 回答1: You basically need to apply a the same