Latest 2.0.4
Homepage https://github.com/MQZHot/ZLaunchAd
License MIT
Platforms ios 8.0, requires ARC
Authors

ZLaunchAd

image image Carthage Compatible

ZLaunchAd集成启动广告,支持LaunchImageLaunchScreen,支持GIF,支持本地图片,支持视图过渡动画

image image image image image image

功能

  • [x] 支持进入前台广告显示,设定时间间隔,进入后台后返回的时间大于间隔才进行显示
  • [x] 接收自定义通知控制图片显示
  • [x] 支持Objective-C/Swift
  • [x] 自带图片缓存,清除缓存
  • [x] 自定义跳过按钮外观、位置
  • [x] 支持网络/本地资源,支持GIF图片显示
  • [x] 支持LaunchImage和LaunchScreen.storyboard.
  • [x] 支持广告点击事件,支持广告完成动画设置

安装

CocoaPods

platform :ios, '8.0'
use_frameworks!

target 'YourTargetName' do
pod 'ZLaunchAd'
end

Carthage

github "MQZHot/ZLaunchAd"

使用

/// 进入前台时显示
func create(waitTime: Int = 3, showEnterForeground: Bool = false, timeForWillEnterForeground: Double = 10, adNetRequest: ((ZLaunchAdView)->())? = nil) -> ZLaunchAdView
/// 自定义通知控制出现
func create(waitTime: Int = 3, customNotificationName: String?, adNetRequest: ((ZLaunchAdView)->())? = nil) -> ZLaunchAdView

配置图片资源—-配置跳过按钮

func setImageResource(_ imageResource: ZLaunchAdImageResourceConfigure, buttonConfig: ZLaunchSkipButtonConfig? = nil, action: ZLaunchClosure?)

页面配置

  • ZLaunchSkipButtonConfig:跳过按钮配置
  • ZLaunchAdImageResourceConfigure:配置广告图

清除缓存

/// 清除全部缓存
ZLaunchAd.clearDiskCache()

/// 清除指定url的缓存
let array = ["http://..", "http://..", "http://..", "http://.."]
ZLaunchAd.clearDiskCacheWithImageUrlArray(array)

联系

LICENSE

ZLaunchAd is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "ZLaunchAd",
    "version": "2.0.4",
    "summary": "u96c6u6210u542fu52a8u5e7fu544a,u652fu6301LaunchImageu548cLaunchScreen,u652fu6301GIF,u652fu6301u672cu5730u56feu7247,u652fu6301u89c6u56feu8fc7u6e21u52a8u753b",
    "homepage": "https://github.com/MQZHot/ZLaunchAd",
    "authors": {
        "mqz": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/MQZHot/ZLaunchAd.git",
        "tag": "2.0.4"
    },
    "source_files": "ZLaunchAd/*.{h,m,swift}",
    "xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/ZLaunchAd/ZLaunchAd/CCommonCrypto"
    },
    "preserve_paths": "ZLaunchAd/CCommonCrypto/module.modulemap",
    "requires_arc": true,
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    }
}

Pin It on Pinterest

Share This