For more details about SplashView, see the Android version: SplashView- One line of code to solve the splash screen page – Advertising page -Android- chapter

IOS effect:

Display SplashView static method:

class func simpleShowSplashView()Copy the code

You can also customize the timeout, default Image, and return to Block:

class func showSplashView(duration: Int = 6, defaultImage: UIImage? , tapSplashImageBlock: ((actionUrl: String?) -> Void)? , splashViewDismissBlock: ((initiativeDismiss: Bool) -> Void)?)Copy the code

Note that both methods need to be displayed at least after the View of the UIViewController (i.e. Override func viewDidAppear(animated: Bool)) to display SplashView.

SplashView Data can be updated anywhere:

class func updateSplashData(imgUrl: String? , actUrl: String?)Copy the code

See the blog post for more details: SplashView – One line of code to solve the splash screen page (AD page) – Android article