# MDSplashScreen **Repository Path**: Alan_xz/MDSplashScreen ## Basic Information - **Project Name**: MDSplashScreen - **Description**: 开屏广告 支持本地与网络的图片,Gif,视频 - **Primary Language**: Swift - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 29 - **Forks**: 1 - **Created**: 2018-01-11 - **Last Updated**: 2022-10-17 ## Categories & Tags **Categories**: ios-modules **Tags**: None ## README # MDSplashScreen [![CI Status](http://img.shields.io/travis/85940969@qq.com/MDSplashScreen.svg?style=flat)](https://travis-ci.org/85940969@qq.com/MDSplashScreen) [![Version](https://img.shields.io/cocoapods/v/MDSplashScreen.svg?style=flat)](http://cocoapods.org/pods/MDSplashScreen) [![License](https://img.shields.io/cocoapods/l/MDSplashScreen.svg?style=flat)](http://cocoapods.org/pods/MDSplashScreen) [![Platform](https://img.shields.io/cocoapods/p/MDSplashScreen.svg?style=flat)](http://cocoapods.org/pods/MDSplashScreen) ![image](image.gif)![gif](gif.gif)![vidio](vidio.gif) ## 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](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod 'MDSplashScreen' ``` ## Author Alan_xz, 85940969@qq.com ## License MDSplashScreen is available under the MIT license. See the LICENSE file for more info.