ios 平台上的无限轮播图

    CGRect rect = CGRectMake(0, 90, self.view.frame.size.width, 150);
    ZQFScrollImageView *zView = [[ZQFScrollImageView alloc]
initWithFrame:rect];
    zView.backgroundColor = [UIColor lightGrayColor];
    NSMutableArray *array = [NSMutableArray arrayWithCapacity:4];
    for (NSInteger i = 1; i <= 4; i++) {
        UIImage *image = [UIImage imageNamed:[NSString
stringWithFormat:@"%ld.jpg", (long)i]];
        [array addObject:image];
    }

    zView.images = array;
    zView.timerInterval = 0;
    [zView start];
    [self.view addSubview:zView];