仿网易自动循环广告,也可手动滑动

仿网易自动循环广告也可手动滑动可自定义自动滚动时间间隔这个例子是从其他地方下的不过原始代码里存在严重的内容泄露使用时间长了会发现滚动缓慢这个bug已被我修复使用方法如下: NSMutableArray viewsArray [NSMutableArray array]; for int i 0; i < 3; ++i { UIImageView imageView [[UIImageView alloc]initWithFrame:self adViewContainerInPersonalView bounds]; imageView image [UIImage imageNamed:[NSString stringWithFormat:@"MQLADPlaceholderPic%d" i+1]]; [viewsArray addObject:imageView]; } self adView [[CycleADScrollView alloc] initWithFrame:self adViewContainerInPersonalView bounds animationDuration:2]; self adView fetchContentViewAtIndex ^UIView NSInteger pageIndex { return viewsArray[pageIndex]; }; self adView totalPagesCount ^NSInteger void { return [viewsArray count]; }; self adView TapActionBlock ^ NSInteger pageIndex { NSLog @"点击了第%d个" pageIndex ; }; [self adViewContainerInPersonalView addSubview:self adView];">仿网易自动循环广告也可手动滑动可自定义自动滚动时间间隔这个例子是从其他地方下的不过原始代码里存在严重的内容泄露使用时间长了会发现滚动缓慢这个bug已被我修复使用方法如下: NSMutableArray [更多]
zip 文件大小:5.7KB