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
For swift 4.2, try the following code:
self.navigationController!.pushViewController(self.storyboard!.instantiateViewController(withIdentifier: "inventoryViewController") as UIViewController, animated: true)