Skip to content

Instantly share code, notes, and snippets.

@indyfromoz
Created August 14, 2013 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indyfromoz/6227602 to your computer and use it in GitHub Desktop.
Save indyfromoz/6227602 to your computer and use it in GitHub Desktop.
Objective-C sample that illustrates how a walkthrough VC can be created and presented with a fade-in animation
// Code from Wordpress iOS App [File: SidebarViewController.m, - (void)showWelcomeScreenIfNeeded; ]
GeneralWalkthroughViewController *welcomeViewController = [[GeneralWalkthroughViewController alloc] init];
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:welcomeViewController];
aNavigationController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
aNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
[self.panelNavigationController presentModalViewController:aNavigationController animated:YES];
// Panel navigation controller is inherited from UIViewController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment