简体   繁体   English

横向模式下的tabbar控制器

[英]tabbar controller in landscape mode

I am working on a project in which I need to have the application in landscape mode. 我正在开发一个项目,我需要在横向模式下使用该应用程序。 I made the changes in .plist file by setting interface orientation to landscape. 我通过将界面方向设置为横向来在.plist文件中进行更改。 I changed the orientation to landscape in the .xib files also but still when the application starts the in the simulator the tabbar controller appears in portrait mode only. 我还在.xib文件中将方向更改为横向,但仍然在应用程序在模拟器中启动时,标签控制器仅以纵向模式显示。 Can any one please help with this. 任何人都可以帮忙解决这个问题。

Thanks 谢谢

Note that by design, the UITabBarController will only rotate to support an interface orientation that all of its view controllers support. 请注意,根据设计, UITabBarController将仅旋转以支持其所有视图控制器支持的接口方向。 It will send the -shouldAutorotateToInterfaceOrientation: message to each of its view controllers and, if they all return YES , will return YES . 它会向每个视图控制器发送-shouldAutorotateToInterfaceOrientation:消息,如果它们都返回YES ,则返回YES

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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