How can I display a splash screen for longer on an iPhone?

前端 未结 24 1877
滥情空心
滥情空心 2020-11-27 11:37

How can I display a splash screen for a longer period of time than the default time on an iPhone?

24条回答
  •  失恋的感觉
    2020-11-27 12:24

    I have done this as below:

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil];
        UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"splashView"];
        self.window.rootViewController = viewController;
    

    Note: LaunchScreen is the launch story borad and splashView is the storyboardIdentifier

提交回复
热议问题