0
- (void)viewWillAppear:(BOOL)animated; {
// First rotate the screen:
[UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft;
// Then rotate the view and re-align it:
CGAffineTransform landscapeTransform = CGAffineTransformMakeRotation((270.0/180*M_PI));
landscapeTransform = CGAffineTransformTranslate(landscapeTransform, +90.0, +90.0);
[self.view setTransform:landscapeTransform];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { \t \t 回報(interfaceOrientation == UIInterfaceOrientationLandscapeRight); } – Imran 2011-03-08 08:28:03
其唯一的導航欄不旋轉整個視圖完美旋轉。 – Imran 2011-03-08 08:34:12