Unable to explicitly load view controller from storyboard
问题 I'm loading a view controller from a story board explicitly and have this code: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil]; UIViewController *initViewController = [storyboard instantiateViewControllerWithIdentifier:@"InitialScreen"]; But am getting an error "'Storyboard () doesn't contain a view controller with identifier 'InitialScreen'" Yet as can be seen from the screenshot, the view controller does have that identifier. I've used this identical