2011-04-19 70 views
0

我已经将两个纵向方向添加到了.plist和普通的iPad,但它仍然没有轮流到顶部纵向按钮上:这里是我的代码在firstviewcontroller.m不能旋转到两个纵向方向

// Override to allow orientations other than the default portrait orientation. 
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return YES; 
} 

回答

1

把它放在你所有的视图控制器中,可能你有一个基础和每个iPhone/iPad覆盖一个。他们每个人都必须返回YES(或YES/NO,具体取决于您希望支持的方向)。

相关问题