横向模式下的标签栏控制器 [英] tabbar controller in landscape mode

查看:35
本文介绍了横向模式下的标签栏控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中,我需要在横向模式下运行该应用程序.我通过将界面方向设置为横向来对.plist文件进行了更改.我也将.xib文件中的方向更改为横向,但是仍然在应用程序启动模拟器中时,选项卡控制器仅以纵向模式显示.有人可以帮忙吗?

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. 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. Can any one please help with this.

谢谢

推荐答案

请注意,根据设计, UITabBarController 只会旋转以支持其 all 的界面方向查看控制器支持.它将向每个视图控制器发送 -shouldAutorotateToInterfaceOrientation:消息,如果它们都返回 YES ,则将返回 YES .

Note that by design, the UITabBarController will only rotate to support an interface orientation that all of its view controllers support. It will send the -shouldAutorotateToInterfaceOrientation: message to each of its view controllers and, if they all return YES, will return YES.

这篇关于横向模式下的标签栏控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆