Leif160519的blog Leif160519的blog

——————

目录
IOS中如何设置启动界面的停留时间
/    

IOS中如何设置启动界面的停留时间


IOS默认的启动时间比较短,为了延长启动界面停留时间我们可以在Appdelegate.m中的第一个方法中添加如下代码:

 [NSThread sleepForTimeInterval:3];

注意其中,sleepForTimeInterval:后面的参数单位是秒,数值大小大于0。

演示效果图

这里写图片描述


“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题IOS中如何设置启动界面的停留时间
作  者Leif160519
出  处https://github.icu/articles/2019/08/23/1566541708553.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!