Git Product home page Git Product logo

horizontalpickerview's Introduction

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.