Making the launch image display longer xcode

后端 未结 8 2026
囚心锁ツ
囚心锁ツ 2020-12-14 10:04

I need help with launch images on iphone. In the project settings on xcode theres an option to add launch images. I added it and it displays for 2 seconds... I want it to be

相关标签:
8条回答
  • 2020-12-14 10:53

    Launch images are there to make your app appear really responsive and should be a snapshot of your UI prior to any items on it like tabBars, etc. Apple doesn't really want you to use them as splash screens.

    That said, a lot of people do and to achieve this result, your App delegate needs to put the same image on screen as you launch image and then you can delay launching your main app with performSelector:withObject:afterDelay:

    0 讨论(0)
  • 2020-12-14 10:55

    You can use the sleep() method.

        - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        // Override point for customization after application launch.
        sleep(10);
        return YES;
    }
    
    0 讨论(0)
提交回复
热议问题