如何从 iOS 5.1 中的 UISplitViewController 关闭主视图 [英] How can I dismiss the master view from a UISplitViewController in iOS 5.1

查看:28
本文介绍了如何从 iOS 5.1 中的 UISplitViewController 关闭主视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在表视图中进行选择时,我试图隐藏主视图控制器.我已经查看了 stackoverflow,只能找到适用于 iOS 5.1 之前的解决方案

I am trying to hide the master view controller when a selection has been made in the table view. I've looked all over stackoverflow and can only find solutions that used to work prior to iOS 5.1

我尝试关闭PopoverAnimated 或dismissModalViewControllerAnimated,但这些似乎都不起作用.

I've tried to dismissPopoverAnimated or dismissModalViewControllerAnimated, but none of those seem to work.

必须有一种方法可以在制作完一个部分后隐藏 masterview 控制器.

There has got to be a way to hide the masterview controller once a section has been made.

任何帮助将不胜感激.谢谢.

Any help would be really appreciated. Thanks.

推荐答案

你必须关闭你的 popovercontroller.看到这个答案,有一个代码示例:
https://stackoverflow.com/a/5829368/558150

you have to dismiss your popovercontroller. see this answer, there is a code example:
https://stackoverflow.com/a/5829368/558150

这篇关于如何从 iOS 5.1 中的 UISplitViewController 关闭主视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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