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

查看:70
本文介绍了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天全站免登陆