How to delay Default.png?

后端 未结 6 1285
后悔当初
后悔当初 2020-12-31 11:18

How can I delay the app loading to show the splash screen for longer?

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 11:30

    You can use it sleep method to get this result "

    sleepForTimeInterval

    ", If you want to get it launch time, do like :

    - (void) applicationDidFinishLaunching:(UIApplication*)application
    {
       [NSThread sleepForTimeInterval:8.0];
    }
    

    It will delay the launch by 8 seconds

    Warning : But it is not recommended by apple, as it will the watchdod about long time for your app loading, It can kill your app. But incase if you need it to get some specific screenshot or for some in-house use, you can use to solve for purpose but never in app submission.

提交回复
热议问题