title: how to set UINavigationController as a rootviewcontroller using xib in ios swift?
body: <p>Here I Have tried to set navigationcontroller as a rootviewcontroller but it shows a error. How to solve it. </p>
  
  <p>Extra argument 'bundle' in call.</p>
  
  <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {
  
      self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
      self.window!.backgroundColor = UIColor.whiteColor()
  
      let nav = UINavigationController()
      let vc = MyNavigationController(nibName: "MyNavigationController", bundle: nil)
  
      nav.pushViewController(vc, animated: false)
  
      self.window!.rootViewController = nav
      self.window!.makeKeyAndVisible()
      nav.setNavigationBarHidden(true, animated: false)
  
  
      return true
  }
  </code></pre>