I need to implement the following, and I wanted to know the correct way to do this.
when the iPhone application starts, I need to show the logo image for 2 seconds, and then show the login screen, which allows the person to log in or create an account. When the user logs in, I need to show the tabbarcontroller menu options.
Here's how I do it now:
In AppDelegate :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { LoginViewController *viewController0 = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil]; UINavigationController *aNavigationController0 = [[UINavigationController alloc] initWithRootViewController:viewController0]; self.window.rootViewController = aNavigationController0;
@implementation :
@implementation LoginViewController - (IBAction)createNewAccountButtonClicked:(id)sender { AppDelegate *delegate = [[UIApplication sharedApplication] delegate]; delegate.window.rootViewController = delegate.tabBarController; }
So my questions are:
Is this the right way to show a tab for my purpose?
In this circuit of things, I cannot show an animated logo. Any pointers on how to do this?
source share