I want to open new UIViewController on the button through code. I have already made the controller in storyboard and just want to link it and also I don\'t want to use XIB inter
self.navigationController!.pushViewController(self.storyboard!.instantiateViewControllerWithIdentifier("userProfileController") as UIViewController, animated: true)
I wanted to add my view controller to the navigation controller and this also worked