
Untitled
By: a guest on
Apr 18th, 2012 | syntax:
None | size: 0.42 KB | hits: 8 | expires: Never
How to drop pins from top of iPhone when you use CGAffineTransformMakeRotation to rotate mkmapview
theMapView.transform = CGAffineTransformMakeRotation(( trueHeading * M_PI / 180.0) * -1);
[UIView beginAnimations: @"rotate" context:nil];
[UIView setAnimationBeginsFromCurrentState:YES];
CGFloat radians = trueHeading / 180 * M_PI;
compassRoseView.transform = CGAffineTransformMakeRotation( radians);
[UIView commitAnimations];