3

在我的 iPad 应用程序中,我有用于 firstView 的 tabbarController,对于 tabbarController,我添加了按钮,当我们按下它时,会出现一个 viewcontroller。我的问题是当我试图在 PortraitUpsideDown 中转动该视图控制器时,它并没有进入 PortraitUpsideDown。我在该 viewController 中使用的代码是

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);

// 返回是;}

}

谁能告诉我我犯了什么错误或有什么要补充的。感谢你。

4

0 回答 0