【发布时间】:2015-11-05 21:48:50
【问题描述】:
Picture of my storyboard, i use a login screen first and then the splitview我正在将 TabBarController 嵌入到通用应用程序的 SplitView 中的 MasterView 中,问题是它在 iPad 或 iPhone 6 plus(横向)中使用时完美运行,但在 iPhone 中使用时或者在 iPad 中使用新的多任务处理并将其设置为屏幕的一半,每次我想显示 DetailViewController 时,它都会弹出而不是作为其 NavigationController 中的普通 ViewController 推送。我以为我几个月前就已经解决了,但现在 iOS 9 更新又失败了。
我认为这与功能有关:
func splitViewController(splitViewController: UISplitViewController, showDetailViewController vc: UIViewController, sender: AnyObject?) -> Bool
但我不知道如何使用它。
【问题讨论】:
-
如果您使用故事板,请显示故事板的图像。
标签: swift ios8 uitabbarcontroller uisplitviewcontroller