rootviewcontroller

let mainStoryBoard = UIStoryboard(name: "Main", bundle: nil)
let vc = mainStoryBoard.instantiateViewControllerWithIdentifier("KYDrawerController") as! KYDrawerController
let nav = UINavigationController(rootViewController: vc)
self.app!.window?.rootViewController = nav