- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ BOOL isLoggedIn = ...; // from your server response NSString *segueId = isLoggedIn ? @"MainIdentifier" : @"LoginIdentifier"; self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:segueId]; return YES;}
IOS启动时判断登录与否
Storyboard转向
猜你喜欢
转载自lizhuang.iteye.com/blog/2147739
今日推荐
周排行