SRCarouselView icon indicating copy to clipboard operation
SRCarouselView copied to clipboard

轮播图只显示第一张图,左滑或者右滑。也只显示第一张图

Open sitting2002 opened this issue 8 years ago • 0 comments

轮播图只显示第一张图,左滑或者右滑。也只显示第一张图

我的代码如下:(图片地址随便找的)

NSArray *ttarray = @[ @"https://my.com/images/boards/de84562406fcdf6e1d7a91082cef2ab9ba9cfc7e.jpeg?imageView2/1/w/1242/h/630", @"https://my.com/images/boards/32f0be9bd27a9b1afc7014136694f65e40f43b90.jpeg?imageView2/1/w/1242/h/630", @"https://my.com/images/boards/06e8e95a88c8eb0edf39b44b1e91659dfd24ef77.jpeg?imageView2/1/w/1242/h/630", @"https://my.com/images/boards/492e46367bd9498fb18a4abe35c8f49b5ca9d62b.jpg?imageView2/1/w/1242/h/630" ];

    SRCarouselView *billboards = [SRCarouselView sr_carouselViewWithImageArrary:ttarray describeArray:@[@"1", @"2", @"3", @"4"] placeholderImage:nil block:^(NSInteger index) {
        NSLog(@"%li", (long)index);
    }];
    billboards.frame = CGRectMake(0, 64, self.view.bounds.size.width, 210);
    billboards.autoPagingInterval = 5.0;
    [self.view addSubview:billboards];

sitting2002 avatar Oct 13 '17 15:10 sitting2002