Code Monkey home page Code Monkey logo

horizontalpicker's Introduction

HorizontalPicker

HorizontalPickerView is a lean variant of UIPickerView and meant to be used for small data sets and where picker space is limited.
Though you can modify the width of the picker without restrictions the height should stay near 44px.

Usage

HorizontalPicker follows the UIPicker’s delegate and dataSource protocols.
Create a HorizontalPicker programmatically using


	HorizontalPickerView *pView = [HorizontalPickerView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
	pView.dataSource            = self;
	pView.delegate              = self;

or include a normal UIView in your Storyboard file, go to the identity inspector
and change the Class to HorizontalPickerView. Make sure you connect the dataSource and delegate
outlets.

NOTE: If you are using HorizontalPickerView only in your Storybord you might experience
linker errors. In that case include the following code somewhere inside your code.


	[HorizontalPickerView class];

This makes sure the linker doesn’t optimise the HorizontalPickerView away.

Included in the HorizontalPickerView workspace is the HorizontalPickerView framework project
and the HPDemo project.
The HPDemo project is just for demonstration purposes to show the usage. Its a universal
project and shows how to deal with different dataSource objects.

Installation

Include the HorizontalPickerView.framework into your project and make sure you include the header file


#include <HorizontalPickerView/HorizontalPickerView.h>

NOTE: Make sure you have the QuartzCore framework added to your project!

Versioning

Versioning for HorizontalPicker follows the Semantic Version Specification found on http://semver.org.

New in version 1.1.0
- support for cocoapods
- choose iOS7 like style

License

Usage is provided under the [MIT licence](http://http://opensource.org/licenses/MIT). See LICENCE for the full details.

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.