A SplashView injecting to UIViewController for iOS in Swift.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SplashViewSample.xcodeproj
SplashViewSample
SplashViewSampleTests
SplashViewSampleUITests
.gitignore
README.md

README.md

iOS-SplashView

关于 SplashView 详细接受可以参考 Android 版: SplashView-一行代码解决闪屏页-广告页-Android-篇

iOS 效果:

Default Splash Demo Normal Splash Demo

显示 SplashView 静态方法:

class func simpleShowSplashView()

也可以自定义超时时间、默认 Image、回到 Block:

class func showSplashView(duration: Int = 6,
                              defaultImage: UIImage?,
                              tapSplashImageBlock: ((actionUrl: String?) -> Void)?,
                              splashViewDismissBlock: ((initiativeDismiss: Bool) -> Void)?)
需要注意的是:以上两个方法都需要至少在 UIViewController 的 View 显示之后 (即: override func viewDidAppear(animated: Bool)) 再调用才能达到显示 SplashView 的效果。

可以在任何地方更新 SplashView data:

class func updateSplashData(imgUrl: String?, actUrl: String?)

详情见博文:SplashView - 一行代码解决闪屏页(广告页) - Android 篇