Master Table Application

﹥>﹥吖頭↗ 提交于 2019-11-28 09:39:21

问题


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.


回答1:


This is a new feature of UISplitViewController that was introduced in iOS 5.1.

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

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; 

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



来源:https://stackoverflow.com/questions/9628107/master-table-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!