Latest | 0.0.3 |
---|---|
Homepage | https://github.com/lsmakethebest/LSLaunchAD |
License | MIT |
Platforms | ios 6.0, requires ARC |
Dependencies | SDWebImage |
Authors |
一行代码实现启动广告页
新增pod 导入
pod ‘LSLaunchAD’
实用方法
-(BOOL)application:(UIApplication )application
didFinishLaunchingWithOptions:(NSDictionary )launchOptions
{
[LSLaunchAD showWithWindow:self.window
countTime:5
showCountTimeOfButton:YES
showSkipButton:YES
isFullScreenAD:NO
localAdImgName:nil
imageURL:@"http://img4q.duitang.com/uploads/item/201204/01/20120401222504_xMBAS.thumb.224_0.jpeg"
canClickAD:YES
aDBlock:^(BOOL clickAD) {
if (clickAD) {
NSLog(@"点击了广告");
UINavigationController *nav =
(UINavigationController *)
self.window.rootViewController;
UIViewController *vc = [[UIViewController alloc] init];
vc.view.backgroundColor = [UIColor whiteColor];
vc.title = @"广告";
[nav pushViewController:vc animated:YES];
} else {
NSLog(@"完成倒计时或点击了跳转按钮");
}
}];
return YES;
}
Latest podspec
{ "name": "LSLaunchAD", "version": "0.0.3", "summary": "u4e00u884cu4ee3u7801u5b9eu73b0u5e26logou5e7fu544au542fu52a8u9875", "homepage": "https://github.com/lsmakethebest/LSLaunchAD", "license": "MIT", "authors": { "ls": "[email protected]" }, "platforms": { "ios": "6.0" }, "source": { "git": "https://github.com/lsmakethebest/LSLaunchAD.git", "tag": "0.0.3" }, "source_files": "LSLaunchAD/**/*.{h,m}", "requires_arc": true, "dependencies": { "SDWebImage": [] } }
Thu, 16 Feb 2017 23:40:05 +0000