Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 841 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 841 Bytes

JCImageSliderView

用OC写的一个iOS广告栏,实现循环播放,手动拖动时暂停自动播放。

demo gif


Usage

Creation of a JCImageSliderView

JCImageSliderView *imageSliderView = [[JCImageSliderView alloc] initWithFrame:CGRectMake(0, 0, width, height) imageSliderItems:array pageControlPosition:JCPageControlPositionRight timeInterval:4.0];
imageSliderView.delegate = self;
[self.view addSubView:imageSliderView];

Delegate

- (void)imageSliderView:(JCImageSliderView *)imageSliderView didSelectAtIndex:(NSInteger)index {
    JCImageSliderItem *item = array[index];
    NSLog(@"%@", item.title);
}

License

See LICENSE file for details.