iPhone Create View Before TabBarController on tab bar application template
I'm getting pretty good at using xcode and objective c, but only from the templates.
I wish my application to load to a view to login before it reaches the tab bar controller that i have set up.
I believe this can be done in the 'didfinishlaunchi开发者_StackOverflow社区ngwithoptions' section of the app delegate but after that I don't have any idea how once the login is successful that i can show the tab controller again.
i'll be grateful for any help :)
Use modal views for this. Sample example here.
I think you want something like this
LoginViewController *loginViewController = [[[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil] autorelease];
[tabBarController presentModalViewController:loginViewController animated:YES];
inside didfinishlaunchingwithoptions
精彩评论