HMCycleView is a open source iOS library provide infinity scroll show a group of views in view.
##Demo
Build and run the HMCycleViewDemo
project in Xcode to see HMCycleView
in action.
##Setup To enable fantasitic feature in your project with the following simple steps:
- Download the project from GitHub.
- Drop
HMCycleView
files into your project. - Add
#include "HMCycleView.h"
to the top of classes that will use it.
##Usage #####Code example
// 1. create cycleView(set 'frame' or 'autoLayout').
HMCycleView *cycleView = [[HMCycleView alloc] initWithFrame:CGRectMake(0, 0, 300, 100)];
NSURL *url1 = [[NSBundle mainBundle] URLForResource:@"Home_Scroll_01.jpg" withExtension:nil];
NSURL *url2 = [[NSBundle mainBundle] URLForResource:@"Home_Scroll_02.jpg" withExtension:nil];
NSURL *url3 = [[NSBundle mainBundle] URLForResource:@"Home_Scroll_03.jpg" withExtension:nil];
NSURL *url4 = [[NSBundle mainBundle] URLForResource:@"Home_Scroll_04.jpg" withExtension:nil];
NSURL *url5 = [[NSBundle mainBundle] URLForResource:@"Home_Scroll_05.jpg" withExtension:nil];
// 2. set array with image's URL.
cycleView.imageURLs = @[ url1, url2, url3, url4, url5 ];
// 3. add this cycleView.
[self.view addSubview:cycleView];
##TODO
Each item click.
Each item description.
Page control.
Page control custom color.
Scroll duration.
##Author Yoson Hao
Weibo:@郝悦兴
Github:Hao Y.Xing
##Thanks 刀哥
Github:刘凡
Blog:Joy iOS
##License HMCycleView is released under the MIT license. See LICENSE for details.