App启动展示广告效果

2017-04-07  本文已影响0人  探路者1202

- (BOOL)应用程序:(UIApplication *)应用程序didFinishLaunchingWithOptions :( NSDictionary *)launchOptions {

//在应用程序启动后覆盖自定义点。

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showAdDetail :) name:BBLaunchAdDetailDisplayNotification object:nil];

NSString * path = @“http://mg.soupingguo.com/bizhi/big/10/258/043/10258043.jpg”;

[BBLaunchAdMonitor showAdAtPath:path

onView:self.window.rootViewController.view

时间间隔:5。

detail参数:@ {@“carId”:@(12345),@“name”:@“奥迪 - 品质生活”}];

返回YES;

}

- (void)showAdDetail:(NSNotification *)noti

{

NSLog(@“detail parameters:%@”,noti.object);

}原文地址

上一篇 下一篇

猜你喜欢

热点阅读