PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

storyboard切换程序进入页面_html/css_WEB-ITnose

原创
2016-06-24 11:45:53 1335浏览

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    if([userDefaults objectForKey:@"autoLogIn"] != nil && [userDefaults objectForKey:@"rand_code"] != nil) {        UIStoryboard *board = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];        //获取故事板中某个View        UIViewController *next = [board instantiateViewControllerWithIdentifier:@"mainTabBar"];        [self.window setRootViewController:next];        [self.window makeKeyAndVisible];    }else{        UIStoryboard *board = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];        //获取故事板中某个View        UIViewController *next = [board instantiateViewControllerWithIdentifier:@"mainTabBar"];        [self.window setRootViewController:next];        [self.window makeKeyAndVisible];    }    return YES;}

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。