Recently I wrote some code where I tried to refer to an outlet on a UIViewController I\'d just instantiated with [storyboard instantiateViewControllerWith
UIViewController
[storyboard instantiateViewControllerWith
On iOS 9 or newer, one can use:
viewController.loadViewIfNeeded()
Docs: https://developer.apple.com/reference/uikit/uiviewcontroller/1621446-loadviewifneeded