Created
August 14, 2013 02:46
-
-
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
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
// 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