iPad SplitViewController 带有纵向模式菜单,如设置应用程序 [英] iPad SplitViewController with menu in portrait mode like settings app

查看:27
本文介绍了iPad SplitViewController 带有纵向模式菜单,如设置应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 iPad 应用程序上获得一个 SplitView,我的左侧菜单是纵向的,例如 iPad 设置.现在在纵向模式下,我有一个全屏内容视图,我在 NavigationBar 有一个按钮,其中包括一个带有左侧菜单的弹出框.

I would like obtain a SplitView on my iPad application with my left menu in a portrait orientation such as iPad settings. For now in portrait orientation I have a content view in full screen and I have a button at NavigationBar which includes a popover with my left menu.

推荐答案

这就是你需要的魔法:

该方法在 UISplitViewControllerDelegate 中,iOS 5.0 可用

This method is in UISplitViewControllerDelegate, available on iOS 5.0

- (BOOL)splitViewController: (UISplitViewController*)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation  __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0);
{
    return NO;
}

这篇关于iPad SplitViewController 带有纵向模式菜单,如设置应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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