我正在使用fowllowing代码旋转到横向但导航栏不旋转。我在我的应用程序中使用Three20导航

时间:2011-03-07 15:47:41

标签: iphone three20

- (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];
}

1 个答案:

答案 0 :(得分:0)

没有使用过Three20但是你的班级在shouldAutorotateToInterfaceOrientation中返回YES或类似内容吗?