简体   繁体   中英

Rotating a view in objective-c

I am trying to make the multitasking switcher open in landscape mode all the time... even when the phone is being held in portrait... Any ideas? The class is "SBAppSwitcherController" and I'm calling the method "viewDidAppear"

Just set the Supported Interface Orientations to only landscape modes. To do that, you go to your project in the Project Navigator. Then, you will see the Supported Interface Orientations header. Click the dark icons referring to portrait mode to make them light. Then your program will only be in landscape mode. So, if I know what you are saying, you are done!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM