2011-03-07 46 views
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]; 
} 

回答

0

沒有使用Three20,但是您的類是否在shouldAutorotateToInterfaceOrientation中返回YES或類似內容?

+0

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { \t \t 回報(interfaceOrientation == UIInterfaceOrientationLandscapeRight); } – Imran 2011-03-08 08:28:03

+0

其唯一的導航欄不旋轉整個視圖完美旋轉。 – Imran 2011-03-08 08:34:12