Skip to content

RayJiang16/HorizontalPickerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HorizontalPickerView-横向的选择器

By Ray Jiang

##导入 将HorizontalPickerView.h HorizontalPickerView.m 两个文件拖拽至工程中

##横向选择器 使用效果 image

HorizontalPickerView *hpv = [[HorizontalPickerView alloc] initWithFrame:frame 
                            items:@[@"January", @"February", ...] isLoop:NO];
hpv.delegate = self;
[self.view addSubview:hpv];

##横向选择器+循环 使用效果 image image

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;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages