title: Presenting view controllers on detached view controllers
body: <p>I have <code>sideViewController</code> with a button and Action, which present new view controller by clicking this button. </p>
  
  <pre><code>class sideViewController: UIViewController {
      @IBOutlet var buttonVC1 : UIButton!
      @IBAction func goToVC1 () {
          var VC1 = self.storyboard.instantiateViewControllerWithIdentifier("ViewController") as ViewController
          presentViewController(VC1, animated:true, completion: nil)
      }
  }
  </code></pre>
  
  <p>I use this in main view controller:</p>
  
  <pre><code>class ViewController: UIViewController {
      var menu : sideViewController!
      override func viewDidLoad() {
          super.viewDidLoad()
          menu = self.storyboard.instantiateViewControllerWithIdentifier("menu") as      sideViewController
          menu.view.frame = CGRect(x: 0, y: 0, width: 160, height: 480)
          view.addSubview(menu.view)
  }
  </code></pre>
  
  <p>when I click this button, the problem is: "Presenting view controllers on detached view controllers is discouraged"</p>
  
  <p>What should I do to fix this? </p>