Skip to content

Instantly share code, notes, and snippets.

@hlxwell
Created September 29, 2014 11:37
Show Gist options
  • Save hlxwell/52bf19d29f75143ac866 to your computer and use it in GitHub Desktop.
Save hlxwell/52bf19d29f75143ac866 to your computer and use it in GitHub Desktop.
load Storyboard in code
it(@"should instantiate the view controller", ^{
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ViewController"];
[[vc shouldNot] beNil]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment