Instantiate a view controller from a storyboard programmatically

Van Du Tran
iOS + watchOS + Swift
1 min readJul 9, 2015
let storyboard = UIStoryboard(name: “Storyboard”, bundle: nil)let viewController: UIViewController = storyboard.instantiateViewControllerWithIdentifier(“ViewController”) as! UIViewControllerviewController.modalPresentationStyle = UIModalPresentationStyle.FullScreen

--

--