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中如何设置启动界面的停留时间