Skip to content

Commit

Permalink
v3.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderZhuXH committed Dec 28, 2017
1 parent 29352c4 commit 537f542
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion XHLaunchAd/XHLaunchAd/XHLaunchAd.m
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ -(void)setupImageAdForConfiguration:(XHLaunchImageAdConfiguration *)configuratio
adImageView.image = nil;
__weak typeof(adImageView) w_adImageView = adImageView;
adImageView.loopCompletionBlock = ^(NSUInteger loopCountRemaining) {
if(configuration.GIFImageCycleOnce) [w_adImageView stopAnimating];
if(configuration.GIFImageCycleOnce){
[w_adImageView stopAnimating];
XHLaunchAdLog(@"GIF不循环,播放完成");
[[NSNotificationCenter defaultCenter] postNotificationName:XHLaunchAdGIFImageCycleOnceFinishNotification object:nil];
}
};
}else{
adImageView.animatedImage = nil;
Expand Down
3 changes: 1 addition & 2 deletions XHLaunchAdExample/XHLaunchAdExample/XHLaunchAdManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,13 @@ -(void)setupXHLaunchAd{
/** 7.如果你想提前批量缓存图片/视频请看下面两个示例 */
//[self batchDownloadImageAndCache]; //批量下载并缓存图片
//[self batchDownloadVideoAndCache]; //批量下载并缓存视频

}

#pragma mark - 图片开屏广告-网络数据-示例
//图片开屏广告 - 网络数据
-(void)example01{


//设置你工程的启动页使用的是:LaunchImage 还是 LaunchScreen.storyboard(不设置默认:LaunchImage)
[XHLaunchAd setLaunchSourceType:SourceTypeLaunchImage];

Expand Down

0 comments on commit 537f542

Please sign in to comment.