Score
0
9 Unstar Star 26 Fork 1

Alan_xz / MDSplashScreenSwiftMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
开屏广告 支持本地与网络的图片,Gif,视频 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

MDSplashScreen

CI Status Version License Platform

imagegifvidio

Example

//本地图片
let adView = MDSplashScreenView.init(type: .localImage)
adView.img = "localImage.JPG"
adView.linkUrl = "https://www.baidu.com/"
adView.imageValidTime = "03/02/2018 14:25"
adView.showSplashScreenWithTime(showTime: 3)

//本地Gift
let adView = MDSplashScreenView.init(type: .localGif)
adView.img = "localGIf"
adView.linkUrl = "https://www.baidu.com/"
adView.imageValidTime = "03/02/2018 14:25"
adView.showSplashScreenWithTime(showTime: 3)

//本地Vidio
let adView = MDSplashScreenView.init(type: .localVidio)
adView.img = "localVidio"
adView.linkUrl = ""
adView.imageValidTime = "03/02/2018 14:25"
adView.videoCycleOnce = false //是否循环
adView.showSplashScreenWithTime(showTime: 0)

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

MDSplashScreen is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MDSplashScreen'

Author

Alan_xz, 85940969@qq.com

License

MDSplashScreen is available under the MIT license. See the LICENSE file for more info.

Comments ( 0 )

Sign in for post a comment

Swift
1
https://gitee.com/Alan_xz/MDSplashScreen.git
git@gitee.com:Alan_xz/MDSplashScreen.git
Alan_xz
MDSplashScreen
MDSplashScreen
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542