此库模仿滴滴/Uber 的启动后控制器上弹出多个广告,带有删除按钮的动画绘制。广告显示部分是解耦合的,可以完全自定义显示的广告的大小,可以按照原始的比例显示,或设置比例。
是从 SID-AD-View-iOS 分支出来的,并对项目进行了修改,仅供 SuperID 合作开发者使用的一个广告视图。
pod 'DesktopADView'
## Usage
There is a demo project included that shows how to use the SID-AD-View.
- draw the file "DesktopADView.h","DesktopADView.m" into your project./ pod 'DesktopADView' from https://github.com/timRabbit/DesktopADView
- import `DesktopADView.h` in your class
- create a new instance of `DesktopADView`
- using the following API to show the view:
- 支持横竖屏切换
- 关闭按钮动画实现,颜色大小,间距自定义, 删除的 x 不会超出圆圈的位置
///默认使用 UIIMAGEVIEW 做为 adview,
///自定义 view 做 adview,我扩展为 SDCycleScrollView,实现支付宝芝麻信用那里的效果 DesktopADView *adView = [[DesktopADView alloc]init]; ///自定义的 adview,我扩展为 SDCycleScrollView adView.adView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectZero imageNamesGroup:@[@"adImage" , @"adImage" ]];
[adView showInView:self.view image:[UIImage imageNamed:@"adImage"]];
##Give Feedback
**Contact:** [email protected]