Is it possible to make a UIView to splash screen

怎甘沉沦 提交于 2019-12-07 09:32:29

You can do it.

 1. First create any UIViewController or UIView
 2. Click project Targets(Click your project-Left side->It shows Project and Targets options)
 3. Click General
 4. Select App Icons and Launch Images
 5. Choose Launch Screen File
 6. Click Drop Down of Launch Screen File
 7. Then Choose your required view controller which sets as splash screen 

Yes it is possible to make any Viewcontroller as a Splash screen.

Take your ViewController as a initial view then implement one method and call it with method :

[self performSelector:@selector(yourMethodName) withObject:yourObject afterDelay:duration];

then in your Method you can navigate to next ViewController.

A.T

Yes I got the solution, just change the Launch Screen File from Launchscreen.xib to Main.stroryboard under target. Now it's working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!