项目介绍:
[分享]VKAdBannerView
VKAdBannerView使您可以在您的内容中展示离线广告。当iAd或AdMob在某些地区或网络设备上的连接不上时。 VKAdBannerView会帮助你展示你的应用程序或服务的广告。
Manual Installation (手动导入,以下类提供了VKAdBannerView的功能)
The class files required for VKAdBannerView is located in the VKAdBannerView folder in the root of this repository. List of class files below:
VKAdBannerView.hVKAdBannerView.mVKAdBannerViewContent.hVKAdBannerViewContent.mUIImage+VKAdBannerView.hUIImage+VKAdBannerView.m
基本使用代码:
[Objective-C] 查看源文件 复制代码
VKAdBannerContent *adContent = [[VKAdBannerContent alloc] init]; adContent.icon = [UIImage imageNamed:@"my_app_icon"]; adContent.iconBorderColor = [UIColor colorWithWhite:0.5 alpha:1]; adContent.title = @"My app name"; adContent.titleColor = UIColorFromRGB(0xda4936); adContent.descriptionText = @"Some short description of my app"; adContent.descriptionColor = UIColorFromRGB(0x3b3b3b); adContent.price = @"$4.99"; adContent.priceColor = UIColorFromRGB(0x3b3b3b); adContent.url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id_app_link"]; adContent.backgroundColor = [UIColor whiteColor];
DEMO直接下载: