Search code examples
iosswiftmobile-application

Splash Screen in iOS mobile apps(Swift)


I want to implement splash screen for my ios app with a delay of about 2-3 seconds.I am using Swift language for programming.How can I implement this. Any suggestion will be really helpful.


Solution

  • Add Delay time in App didFinishLaunchingWithOptions
    
    //For Swift 3.0
        func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    
              Thread.sleep(forTimeInterval: 2.0)//2.0 Delay Time
    
        }