Permalink
Browse files

Merge pull request #2 from nheagy/master

Small bug fixes
  • Loading branch information...
2 parents 7258ec5 + 6e5ee51 commit 06c6f14214db408556a5b36907c72bee19644b6f @AlanQuatermain committed Jul 19, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 AQSelfRotatingViewController.m
@@ -37,6 +37,7 @@
*/
#import <UIKit/UIKit.h>
+#import "AQSelfRotatingViewController.h"
@implementation AQSelfRotatingViewController
@@ -154,12 +155,12 @@ - (void) orientationWillChange: (NSNotification *) note
break;
}
}
-
+
CGAffineTransform rotation = CGAffineTransformMakeRotation( angle );
[UIView beginAnimations: @"" context: NULL];
[UIView setAnimationDuration: 0.4];
- self.view.transform = CGAffineTransformConcat(self.view.transform, rotation);
+ self.view.transform = CGAffineTransformConcat(rotation, self.view.transform);
[UIView commitAnimations];
}

0 comments on commit 06c6f14

Please sign in to comment.