Storyboard开发时,介绍界面怎么弹出

如题,在用storyboard开发时,如果用户第一次打开则显示欢迎界面。我是在mainController里面用modal的方式显示的,但是之前会看到一下mainController的界面,我想直接进入欢迎界面,并且完成之后能够跳转回来。有没比较好的方案啊

如下所示:

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

    UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

    if(![[NSUserDefaults standardUserDefaults] objectForKey:@"first_launch"]){
        WelcomeViewController *welcome = [mainStoryboard instantiateViewControllerWithIdentifier:@"welcome"];
        window.rootViewController = welcome;
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"first_launch"];
    }else{
        if([[NSUserDefaults standardUserDefaults] objectForKey:@"isBind"]){
            QRViewController *qreader = [mainStoryboard instantiateViewControllerWithIdentifier:@"qreader"];
            window.rootViewController = qreader;
        }else{
            BindViewController *bind = [mainStoryboard instantiateViewControllerWithIdentifier:@"bind"];

            window.rootViewController = bind;
        }
    }
        [window makeKeyAndVisible];

    return YES;
}

展示的时候把动画去掉应该就看不见了

  • 求教腾讯大神,ios视频是如何做到不必弹出播放的?
  • iOS 中绘制圆角图片时,在圆角上出现锯齿,如何解决?
  • iOS图片上传时如何获取token
  • couldn’t be completed. (LaunchServicesError error 0.)
  • ijkplayer 在弱网的时候怎么处理卡顿和跳帧
  • 为什么我用pod添加一个第三方库后工程会报错呢?
  • iOS NSmutablearray 后面继续拼接array
  • ios 音乐类的app,有下载功能,现在通不过审核,需要什么样的证明文件呢
  • iOS蓝牙开发,外部设备的蓝牙是2.0的,需要mfi认证吗?
  • "如何实现LaunchImage的国际化"或者"LaunchScreen.storyboard国际化问题"
  • ios 变量报EXC_BAD_ACCESS错误