Skip to content

HLzhongxiao/ZXCycleScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZXCycleScrollView

iOS Language

Very convenient carousel picture display mode

Now ZXCycleScrollView was updated version to 1.X , If you have any question or suggestion , welcome to tell me !

introduction

ZXCycleScrollView is a more convenient control, and its use is similar to the UITableView loading data mode, picture resources loaded easier to compare, do not need to do too many operations.

Demo

DeoGif

Usage

Initialization ZXCycleScrollView

ZXCycleScrollView *scrollView = [[ZXCycleScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 300)];
scrollView.zxcycleDelegate = self;
scrollView.zxcycleDataSource = self;
[self.view addSubview:scrollView];

ZXCycleScrollViewDataSource

// Gets the number of image resources
- (NSInteger)numberOfIndexInZXCycleScrollView:(ZXCycleScrollView *)cycleScrollView;

// Get picture resources
- (ZXCycleModel *)ZXCycleScrollView:(ZXCycleScrollView *)cycleScrollView provideCycleModel:(ZXCycleModel *)cycleModel zxcycleModelForIndex:(NSInteger)index;

ZXCycleScrollViewDelegate

// Click the event triggered by the picture
- (void)ZXCycleScrollView:(ZXCycleScrollView *)cycleScrollView didSelectIndex:(NSInteger)index andSelectModel:(ZXCycleModel *)cycleModel;

About

Very convenient carousel picture display mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published