仿百度外卖轮播图,在拖动的时候会出现水纹效果,拖动停止,水纹慢慢听着
- (void)viewDidLoad {
[super viewDidLoad];
NSArray *dic = @[@"0",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8"];
_scroll = [YYScrollView initWithImages:dic];
_scroll.delegate = self;
[self.view addSubview:_scroll];
}
-(void)imageClickWithIndex:(NSInteger)index
{
NSLog(@"点击的是第%ld张图片",index+1);
}