Created
December 10, 2012 00:22
-
-
Save aaronpearce/4247648 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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