Permalink
Browse files

Edited AQSelfRotatingViewController.m via GitHub

  • Loading branch information...
nheagy committed Mar 18, 2011
1 parent 7258ec5 commit 6e5ee51bbc849b43f946798513adbd3a4970cc98
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 6e5ee51

Please sign in to comment.