Coder Social home page Coder Social logo

wangchunping2011 / ios-splashview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkyeo/ios-splashview

0.0 1.0 0.0 25 KB

A SplashView injecting to UIViewController for iOS in Swift.

Home Page: http://jkyeo.com/2016/07/10/SplashView-一行代码解决闪屏页-广告页-iOS-Swift-篇/

Swift 100.00%

ios-splashview's Introduction

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 篇

ios-splashview's People

Contributors

jkyeo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.