0

As the title describes I am having a big "what the * is this" at my app atm. It seems I can't get the control over the orientation at all in the different slides. I can only manage the orientation in one way, via the info-plist file. The problem is, info-plist file sets the orientation for the whole app and I am not interested in that.In some slides I want to allow Landscape left/right and others only Portrait and this is not doable vie info-plist?

I have tried my best to understand the problem but I can not say I have gained any bigger "aha moment" so far. I am using UINavigatorbar and Tabbar in my IOS-app which may occur the problem. How can I make the app to start listening to the code in each-file so I can manage the orientation localy ?

4

1 回答 1

0

您使用的是 iOS 6 吗?如果是这样,该-shouldAutorotateToInterfaceOrientation方法已被弃用。

您现在必须重写-supportedInterfaceOrientations-preferredInterfaceOrientationForPresentation方法才能管理屏幕方向。您可以在全局范围内或在单个视图控制器中执行此操作。

有关更多详细信息,请参阅UIViewController 类参考

于 2012-10-30T15:26:23.987 回答