Latest 1.0.1
Homepage https://github.com/shionIsMyName/SYAdLaunchView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

这是什么?

这是一个专门用来实现网络请求广告图作启动图,和版本新特性功能的类库。

怎么用?

此库广告启动图的工作流程如下:

1,初始化视图时,会自动去缓存中找图片数据,如果找到就展示,找不到则跳过。(第一次肯定找不到,因为没缓存)

2,请求网络接口获取广告图url以及其业务参数->异步下载缓存起来。(这时候缓存了,那么下次再进app,走流程1就会加载图片和数据了)

您可以使用如下代码来实现广告启动图的功能。

//1.初始化视图
[SYAdLaunchViewManager launchView:^(SYAdLaunchView *launchView) {
    //您可以对launView进行一些个性化设置
    //比如说来个倒计时(必须先有名称,才能有倒计时,才能有后缀)
    [email protected]"跳过";`
    launchView.secs_skip = 10;`
    launchView.surffix_skip [email protected]"s";
    //调用on来显示
    [launchView on];
} skipHandler:nil 
  adHandler:nil];

//2.缓存图片极其业务参数
[SYAdLaunchViewManager cacheImageUrls:urls andBoundingParams:params];

demo1
demo2

您可以使用如下代码实现版本新特性的功能。

if ([SYAdLaunchViewManager ifNeedShowNewFeature]) {//判断是否需要显示新特性
   [SYAdLaunchViewManager newFeatureViewWithImages:imageNames 
                                        setHandler:^(SYAdLaunchView *newFeatureView) {
                                        [newFeatureView on];
                                        } expHandler:nil 
                                        scrollHandler:nil];
}

demo3

1,该库每次缓存前都会自动对比前后二者,以新传入的url为准,对应的旧的会被删除。所以不用担心使用久了缓存会多。

2,当然,如果产品感觉这样数据更新速度不够实时,你也可以放倒程序代理里,比如说在程序进入后台时缓存,进入前台时在使用视图。或者…

3,强烈建议使用前看demo!!!强烈建议看使用前看demo!!!强烈建议看使用前看demo!!!

What is this?

This is a library which can help you to achieve a function like getting ads from server and running like a launchImage,besides this can also help you to achieve a new-feature function.

how to use?

download the demo,and have a try.

Latest podspec

{
    "name": "SYAdLaunchView",
    "version": "1.0.1",
    "summary": "A obj-c library which getting ads from server and running like a launchImage/obj-cu7528,u7f51u7edcu5e7fu544au542fu52a8u56feu6846u67b6,u8fd8u53efu5b9eu73b0u7248u672cu65b0u7279u6027u529fu80fd",
    "description": "A obj-c library which can easily help you to achieve a AdLaunchImageView function and a New-Feature function./ u4e00u4e2aobj-cu7684u6846u67b6,u53efu4ee5u8f7bu677eu5e2eu4f60u5b9eu73b0u8bf7u6c42u7f51u7edcu5e7fu544auff0cu7f13u5b58u8d77u6765u5f53u4f5cu542fu52a8u56feu6765u7528,u4e14u8fd8u53efu4ee5u8f7bu677eu5e2eu60a8u5b9eu73b0u7248u672cu65b0u7279u6027u529fu80fdu3002",
    "homepage": "https://github.com/shionIsMyName/SYAdLaunchView",
    "license": "MIT",
    "authors": {
        "u65bdu52c7": "[email protected]/[email protected]"
    },
    "source": {
        "git": "https://github.com/shionIsMyName/SYAdLaunchView.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "SYAdLaunchView/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This