Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 18th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to drop pins from top of iPhone when you use CGAffineTransformMakeRotation to rotate mkmapview
  2. theMapView.transform = CGAffineTransformMakeRotation(( trueHeading  * M_PI / 180.0) * -1);
  3.  
  4.  
  5. [UIView beginAnimations: @"rotate" context:nil];
  6. [UIView setAnimationBeginsFromCurrentState:YES];
  7. CGFloat radians = trueHeading / 180 * M_PI;
  8. compassRoseView.transform = CGAffineTransformMakeRotation( radians);
  9. [UIView commitAnimations];