By Ray Jiang
##导入
将HorizontalPickerView.h HorizontalPickerView.m 两个文件拖拽至工程中
HorizontalPickerView *hpv = [[HorizontalPickerView alloc] initWithFrame:frame
items:@[@"January", @"February", ...] isLoop:NO];
hpv.delegate = self;
[self.view addSubview:hpv];
HorizontalPickerView *hpv = [[HorizontalPickerView alloc] initWithFrame:frame
items:@[@"January", @"February", ...] isLoop:YES];
hpv.delegate = self;
[self.view addSubview:hpv];
##HorizontalPickerView的代理方法 /// 当HorizontalPickerView向右循环时调用的方法 eg.2016-12 -> 2017-1 -(void)didLoopForward;
/// 当HorizontalPickerView向左循环时调用的方法 eg.2016-12 <- 2017-1
-(void)didLoopBack;
///当HorizontalPickerView选中了一个Item时调用的方法
-(void)didSelectItem:(NSInteger)index;