I am trying to instantiate a ViewController defined in MainStoryBoard.storyboard using the code snippet shown in the pic below. I also assigned an identifier to the controller but app crashed with the error shown in pic saying "Storyboard doesn't contain a controller with identifier masterViewController" although you can clearly see in pic that its there.
Any help will be appreciated.

![Error Screen](https://i.stack.imgur.com/qs9EN.png)
Just so you know, following solution didn't work for me: [Crash with instantiateViewControllerWithIdentifier](https://stackoverflow.com/questions/9367715/crash-with-instantiateviewcontrollerwithidentifier)

Below is the snapshot that confirms that the storyboard object is same that is retrieved from viewcontroller and used to instantiateViewControllerWithIdentifer:. ![Storyboard obj same](https://i.stack.imgur.com/bYfvR.png)
**SITUATION DESCRIPTION**: I am trying to develop a custom SplitViewController (subclassed from UIViewController). This UIViewController is purely programmatic i.e. not based on IBInterface layout. However for its children i.e MasterViewController and DetailViewController I have made layouts in IBInterface. Now I am retrieving a UIStoryboard object in SplitViewController (purely programatic one) and passing it to a utility class shown here in the first pic that uses it to instantiate MasterViewController based on a layout in the Storyboard.