title: Removing the displayModeButton in UISplitViewController in iOS
body: <p>I want to remove the displayModeButton from the detailViewController's Navigation Bar in splitveiwconroller. I tried setting leftBarButtionItem.isEnable = false in AppDelegate.swift file(as below)</p>
  
  <pre><code>if let splitViewController = self.window!.rootViewController as? UISplitViewController {
              let navigationController = splitViewController.viewControllers[splitViewController.viewControllers.count-1] as! UINavigationController
              navigationController.topViewController!.navigationItem.leftBarButtonItem?.isEnabled = false
              }
  </code></pre>
  
  <p>it hides the displaymodebutton intially when the application start. But when i swipt right to open the master view and then swipe left to dismiss the masterview controller the dispaly mode buttom reappars again. Please help me to hide the displayModeButton from detail view conroller.</p>