2015-07-10 84 views

回答

0

我發現了一個簡單的解決方案。我爲UISplitViewController做了一堂課,然後我在其中編寫了下面的代碼。

import UIKit 

class Split: UISplitViewController, UISplitViewControllerDelegate { 

    override func viewDidLoad() { 
     super.viewDidLoad() 
     self.delegate = self 
    } 

    override func didReceiveMemoryWarning() { 
     super.didReceiveMemoryWarning() 
    } 

    func splitViewController(svc: UISplitViewController, shouldHideViewController vc: UIViewController, inOrientation orientation: UIInterfaceOrientation) -> Bool { 
     return false 
    } 
} 
相關問題