app需要支持两个屏幕方向,其中一些controller是固定竖屏,一些是固定横屏,我试了下stackoverflow中的这种方法,
http://stackoverflow.com/questions/12520030/how-to-force-a-uiviewcontroller-to-portait-orientation-in-ios-6
我写了一个sample code 在GitHub上 https://github.com/cseparkman/onlyTest:
分别设置第一个VC(View Controller)仅仅支持LandscapeRight,第二个VC支持Portrait.
问题在于:
1. 第一个VC(View Controller) LandscapeRight。 [没问题]
2. 紧接着点击button进入第二个VC 还是LandscapeRight [有问题] ,然后你尝试着晃动手机。第二个VC 将成为 Portrait。
3. 再紧接着点击返回时, 第一个又是 LandscapeRight
请问大家知不知道如何解决这个问题?
http://stackoverflow.com/questions/12520030/how-to-force-a-uiviewcontroller-to-portait-orientation-in-ios-6
我写了一个sample code 在GitHub上 https://github.com/cseparkman/onlyTest:
分别设置第一个VC(View Controller)仅仅支持LandscapeRight,第二个VC支持Portrait.
问题在于:
1. 第一个VC(View Controller) LandscapeRight。 [没问题]
2. 紧接着点击button进入第二个VC 还是LandscapeRight [有问题] ,然后你尝试着晃动手机。第二个VC 将成为 Portrait。
3. 再紧接着点击返回时, 第一个又是 LandscapeRight
请问大家知不知道如何解决这个问题?