之前是iOS的app的启动页,由于启动很快,一闪而过
导致看不清logo
所以需要设置时间长一点
swift launch screen time
ios – Displaying splash screen for longer than default seconds – Stack Overflow
ios – Swift: Make launch image appear slightly longer? – Stack Overflow
ios – Change iPhone splash screen time – Stack Overflow
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { NSThread.sleepForTimeInterval(2) return true } |
即可。
[总结]
想要改变iOS app的启动页面停留时间,在启动函数didFinishLaunchingWithOptions中加上延时:
NSThread.sleepForTimeInterval(2)
即可多延迟2秒了。
转载请注明:在路上 » [已解决]swift设置启动页停留的时间