iPad拆分视图控制器 [英] iPad Split view controller

查看:67
本文介绍了iPad拆分视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我旋转iPad分割视图应用程序时,我的视图是否可以占据整个屏幕而不是菜单或调整大小?我喜欢带有按钮菜单的肖像模式。

Is there any way when I rotate an iPad split view app that my view could take up the full screen instead of the menu or resize it? I like the portrait mode with the menu in the button.

我将如何做到这一点?

推荐答案

如果您在 UIScrollView 旋转到横向时询问是否可以隐藏主视图,则不能。这不是 UIScrollView 的用途。你必须编写自己的视图控制器类。

If you're asking if you can hide the master view when a UIScrollView is rotated to landscape orientation, you can't. That's not what UIScrollView is for. You'll have to write your own view controller class.

这篇关于iPad拆分视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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