UITabbar定向问题 [英] UITabbar orientation problem

查看:82
本文介绍了UITabbar定向问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为uitabbar应用程序进行定向工作.我在选项卡中使用了5个选项卡项.我只希望在风景"和"potrait"中旋转4个标签栏项.但是问题是当我在不旋转的标签栏项中将"return no"设置为shouldAutorotateToInterfaceOrientation时,所有标签栏都无法正常工作.有人可以告诉我我出了什么问题吗?

I am working on orientation work on uitabbar application. I am using 5 tabbar item in tabbar. I want only 4 tab bar item to be rotated in both Landscape and potrait. but the issue is when i put "return no" to shouldAutorotateToInterfaceOrientation in non rotating tabbar item, all tab bar are not working. can anybody please tell me what i went wrong?

谢谢.

关于, 机灵的

推荐答案

默认情况下,如果UITabBarController的每个子控制器中的每个子控制器都对该消息返回是",则它只会对"shouldAutorotateToInterfaceOrientation:"消息返回是".您看到的行为是预期的行为.

By default, a UITabBarController will only return YES to the shouldAutorotateToInterfaceOrientation: message if every one of its child controllers returns YES to that message. The behavior you're seeing is the expected behavior.

此页面上查看第四个列表项.

这篇关于UITabbar定向问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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