如何在ipad中隐藏UiSplitviewcontroller中的主视图 [英] How to hide master view in UiSplitviewcontroller in ipad
问题描述
是否有任何方法可以通过编程方式隐藏splitviewcontroller中的主视图。在我的应用程序中,第一个屏幕将是一个splitviewcontroller,我不需要任何拆分视图用于下一个屏幕。我如何实现这一目标
Is there is any way to hide the master view in a splitviewcontroller programmatically. In my application the first screen will be of a splitviewcontroller, i don't need any split view for the next screens. How i can achieve this
推荐答案
Matt Gemmell创建了一个名为MGSplitViewController的优秀自定义splitViewController。它非常容易实现,评论很多,并且包含许多普通splitViewController所没有的优秀功能(在横向视图中隐藏主视图,在横向视图中更改分割的位置,允许用户在运行时流畅地更改分割的大小,等等。)
Matt Gemmell created an excellent custom splitViewController called "MGSplitViewController". It is very easily implemented, heavily commented, and contains a lot of excellent features not found with a normal splitViewController (hide master view on landscape view, change placement of the split in landscape view, allow user to change size of split fluidly during runtime, etc).
信息和演示: http://mattgemmell.com/2010/08/03/mgsplitviewcontroller-updated/
直接来源: https://github.com/mattgemmell/MGSplitViewController/
这篇关于如何在ipad中隐藏UiSplitviewcontroller中的主视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!