Permalink
Browse files

Merge branch 'master' of github.com:myell0w/MTLocation

  • Loading branch information...
2 parents 33f8661 + bf58dc5 commit d75c1bb81d5d6b4a291203327e909a0924d61d5c @myell0w myell0w committed Dec 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 MTLocation/MTLocationFunctions.m
View
4 MTLocation/MTLocationFunctions.m
@@ -67,7 +67,7 @@ void MTRotateViewToHeading(UIView *view, CLHeading *heading, BOOL animated) {
}
// Apply the transformation animated
- [UIView animateWithDuration:animationDuration
+ [UIView animateWithDuration:animationDuration delay:0.0 options:UIViewAnimationCurveEaseOut | UIViewAnimationOptionBeginFromCurrentState
animations:^{
[view setTransform:CGAffineTransformMakeRotation(heading.magneticHeading * M_PI / -180.0)];
@@ -80,7 +80,7 @@ void MTRotateViewToHeading(UIView *view, CLHeading *heading, BOOL animated) {
[[mapView viewForAnnotation:annotation] setTransform:CGAffineTransformMakeRotation(heading.magneticHeading * M_PI / 180.0)];
}
}
- }];
+ } completion:nil];
}
}

0 comments on commit d75c1bb

Please sign in to comment.