Skip to content

Instantly share code, notes, and snippets.

@aaronpearce
Created December 10, 2012 00:22
Show Gist options
  • Save aaronpearce/4247648 to your computer and use it in GitHub Desktop.
Save aaronpearce/4247648 to your computer and use it in GitHub Desktop.
presetning this onto a normla view controller. Comes as a pagesheet everytime I think
NSString *storyboardName = @"MainStoryboard_iPhone";
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) storyboardName = @"MainStoryboard_iPad";
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
UINavigationController *walkThrough = [storyBoard instantiateViewControllerWithIdentifier:@"walkthroughNav"];
walkThrough.modalPresentationStyle = UIModalPresentationFormSheet;
WalkThroughViewController *wtvc = (WalkThroughViewController *)walkThrough.topViewController;
wtvc.showSignIn = YES;
[self presentViewController:walkThrough animated:NO completion:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment