主表应用程序 [英] Master Table Application

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

问题描述

我正在使用仅使用纵向方向的基本iPad主表应用程序。我希望停止向右滑动时出现masterviewcontroller(只能通过按钮访问)。解决方案可能非常简单但不幸的是我是一个自学新手。

I am using a basic iPad Master Table Application that uses portrait orientation only. I wish to stop the masterviewcontroller from appearing when you swipe right (making accessible by only the button). The solution is probably very simple but unfortunately I am a self taught newbie.

推荐答案

这是<$ c $的新功能c> iOS 5.1中引入的UISplitViewController 。

为了禁用此功能,他们还实现了一个名为 presentsWithGesture 的新属性来打开和关闭它。

In order to disable this feature, they also implemented a new property called presentsWithGesture to turn it on and off.

Apple强烈建议您将其保留,因为人们会越来越希望它能够以这种方式工作,但如果您必须禁用它,那么您需要在代码中的某处添加这个:

Apple highly recommends that you leave it on as people will grow to expect it to work this way, but if you must disable it, somewhere in your code you will need to add this:

self.splitViewController.presentsWithGesture = NO; 

或者,如果你手动创建splitViewController,那么只需设置 presentsWithGesture 到NO。

Or, if you are creating the splitViewController manually then just set the presentsWithGesture to NO.

这篇关于主表应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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