在横向模式下将uiTableView添加为modalView [英] adding a uiTableView in landscape mode as a modalView

查看:54
本文介绍了在横向模式下将uiTableView添加为modalView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置带有许多视图的UITabBarController,在其中一个视图中,我有一个UIbUTTON.在单击此按钮或旋转时,我希望弹出带有tableViewController的横向模式视图控制器.

I am having a UITabBarController set up with many views, In one of the views , i have a UIbUTTON. On clicking this button or on a rotate , I wanted a landscape modal view controller having a tableViewController to popup.

在modalviewController内部,旋转到portait模式时,它会回弹到tabBarController的原始方向.

Inside the modalviewController , on rotating to portait mode , it shud return back to the original orientation of the tabBarController.

我为此是UIDevice setOrientation,现在被苹果拒绝了.有关如何执行此操作的任何指示?

I was UIDevice setOrientation for this, now this is being rejected by apple. Any pointers on how to do this?

推荐答案

在该模式视图控制器中,实现 shouldAutorotateToInterfaceOrientation :: 仅允许其以特定方向显示.

In that modal view controller, implement shouldAutorotateToInterfaceOrientation:: to only allow it to be displayed in a specific orientation.

这篇关于在横向模式下将uiTableView添加为modalView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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