DidFinishLoading视图更改 [英] DidFinishLoading view change

查看:41
本文介绍了DidFinishLoading视图更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中有一个登录屏幕视图和5个选项卡.当我使用LoginScreen完成操作后,我想将其移至选项卡视图(5).为此,一旦完成登录任务,我就必须删除该视图并添加标签的另一个视图控制器.如何执行此操作...

I have a login screen view and 5 tabs in the app.I want when I done with the LoginScreen and it should move to the Tabs views(5) .for this once Login Task is done,I have to remove the view and add the another view controller of the tab..how to do this...

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:self.viewController];


self.window.rootViewController = nav;
[self.window makeKeyAndVisible];
return YES;
}

以这种方式,我进入登录视图...现在,如何在完成登录后删除并移至 tab1,tab2,tab3,tab4,tab5

like this way I moves to the login view...now how to remove after completion of login and move to the tab1,tab2,tab3,tab4,tab5

推荐答案

最初,您将 firstViewController 作为子视图添加到 addDelegate.window 中,然后在 buttonClick上,您可以删除 navController 并将 tabBarController 添加到 appDelegate.window

Initially you add your firstViewController as subView to your addDelegate.window, then on buttonClick you can remove your navController and add tabBarController to appDelegate.window

按照我的回答获得更好的结果链接

Follow my answer for better result Link

这篇关于DidFinishLoading视图更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆