iOS启动页广告JYJAdViewController
来源:互联网 发布:淘宝联盟定金 编辑:程序博客网 时间:2024/05/16 12:32
JYJAdViewController
gitHub地址 https://github.com/jiangyongjian/JYJAdViewController
启动页广告
GIF
Message
JYJAdViewController
模仿摩拜启动页广告,支持gif
Usage
JYJAdViewController
很简单,利用SDWebImage存储显示图片,方便快捷:
1、关键代码
// 开始下载图片[[SDWebImageDownloader sharedDownloader] downloadImageWithURL:url options:SDWebImageDownloaderUseNSURLCache progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) { // 开始存储图片 [[SDImageCache sharedImageCache] storeImage:image imageData:data forKey:urlString toDisk:YES completion:nil]; NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"promotion.plist" ofType:nil]]; // 数据写入文件 NSData *contentData = [NSJSONSerialization dataWithJSONObject:dict options:kNilOptions error:nil]; [contentData writeToFile:self.lastPromotionPageFile atomically:YES];}];
联系我
QQ 453255376, 如有bug、不明白的,希望大家踊跃联系我,把程序写的更好。
阅读全文
0 0
- iOS启动页广告JYJAdViewController
- iOS 启动页广告
- iOS广告启动页
- iOS 录屏大师启动页广告
- ios 类似于网易的启动页广告
- ios App启动加载广告页
- iOS开发——启动广告页
- iOS启动页广告swift3.0
- iOS 快速集成启动页广告
- iOS 快速集成启动页广告
- iOS 快速集成启动页广告
- iOS-APP启动页加载广告
- iOS App启动广告
- IOS启动动画(广告)
- 启动广告图(iOS)
- IOS实现开机启动欢迎页广告倒计时源代码
- iOS 启动页加入动态的广告实现
- 启动页广告
- 枚举的使用
- jQuery UI 中的 datepicker( )方法
- JAVA长连接demo(含心跳检测)
- myeclipse配置git提交项目步骤
- 深度学习与人脸识别系列(2)__基于VGGNet的人脸识别系统
- iOS启动页广告JYJAdViewController
- Android TextView内容包含中英文时满行居中,不足一行则左对齐,会出现左右空格不一致。
- ICPC2017南宁邀请赛1005&&HDU6185 (矩阵快速幂/黑科技
- Oracle分组查询4——扩展分组函数
- 在v8系统中对比显示多个折线图
- 经验之谈:如何为你的机器学习问题选择合适的算法
- 获取区间随机数
- 空指针
- Fragment实现当前页面显示才走onResume里代码