开发者

iPhone Create View Before TabBarController on tab bar application template

开发者 https://www.devze.com 2023-03-26 00:02 出处:网络
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'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

0

精彩评论

暂无评论...
验证码 换一张
取 消