Iphone 无法旋转到两个纵向方向

Iphone 无法旋转到两个纵向方向,iphone,objective-c,screen-rotation,Iphone,Objective C,Screen Rotation,我已经在iPad和normal的.plist中添加了肖像方向,但它仍然没有旋转到顶部肖像按钮:S这是我在firstviewcontroller.m中的代码 // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientati

我已经在iPad和normal的.plist中添加了肖像方向,但它仍然没有旋转到顶部肖像按钮:S这是我在firstviewcontroller.m中的代码

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

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