# HJSplashAdvertismentView
![npm](https://img.shields.io/badge/HJSplashAdvertismentView-1.0.0-brightgreen.svg)
![Travis](https://img.shields.io/travis/rust-lang/rust.svg)
![npm](https://img.shields.io/badge/pod-v1.0.0-blue.svg)
![npm](https://img.shields.io/badge/License-MIT-lightgrey.svg)
* A simple advertisment splash view for iOS. iOS启动页的广告展示View
## 功能
* 6行代码实现iOS启动页的广告展示。支持点击事件。
## 预览
<img height="480" src="https://github.com/hejeffery/HJSplashAdvertismentView/raw/master/gif/HJSplashAdvertismentView.gif" />
## 版本要求
iOS 7 or later
## 编译要求
Xcode6+,
OS X 10.7+
## 安装
* 1.CocoaPods
#### Podfile
```objective-c
platform :ios, '7.0'
pod 'HJSplashAdvertismentView'
```
* 2.Carthage
暂不支持
## 集成
* 1.导入HJSplashAdvertisment.h
```objective-c
#import "HJSplashAdvertisment.h"
```
* 2.使用
```objective-c
// 集成HJSplashAdvertisment
// 初始化HJSplashAdvertismentModel
HJSplashAdvertismentModel *splashAdvertismentModel = [[HJSplashAdvertismentModel alloc] init];
splashAdvertismentModel.imageURL = @"http://gb.cri.cn/mmsource/images/2005/08/04/pa050804100.jpg";// 图片地址
// 初始化HJSplashAdvertismentView
HJSplashAdvertismentView *splashView = [[HJSplashAdvertismentView alloc] init];
splashView.timeDuration = 3.0;// 设置时间,默认是3秒
splashView.splashAdvertismentModel = splashAdvertismentModel;// 设置模型数据
splashView.delegate = self;// 设置代理
splashView.direction = LowerRightDirection;// 设置按钮的方向,支持"右下","右上","左上","左下",默认是"右下"
[splashView showInView:self.window];
// 处理事件点击
- (void)splashAdvertismentView:(HJSplashAdvertismentView *)splashAdvertismentView
imageViewDidClick:(UIImageView *)imageView {
// Do Nothing
}
```
# License
HJSplashAdvertismentView is available under the MIT license. See the LICENSE file for more info.
swift-iOS启动页的广告展示View
1星 需积分: 36 86 浏览量
2019-08-15
04:06:12
上传
评论 1
收藏 1.17MB ZIP 举报
weixin_39841848
- 粉丝: 509
- 资源: 1万+
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈