Skip to content
프로젝트

veader/V8HorizontalPickerView

GitHub에서 보기

소개

Horizontal UIPickerView Control for iOS

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

V8HorizontalPickerView

by Shawn Veader (@veader) of V8 Logic / V8 Labs, LLC

Original design concept by Buck Sharp, the designer on f/stats.

How to use V8HorizontalPickerView

Add the V8HorizontalPickerView header and implementation files (.h and .m) along with the protocol header file to your app source and include them in your project.

Implement the necessary delegate and data source protocol methods. Instantiate and add the picker view to your view and wire up the delegate and data source. That's it!

Delegate Protocol

- (NSInteger)numberOfElementsInHorizontalPickerView:(V8HorizontalPickerView *)picker;

Data Source Protocol

- (void)horizontalPickerView:(V8HorizontalPickerView *)picker didSelectElementAtIndex:(NSInteger)index;
- (NSString *)horizontalPickerView:(V8HorizontalPickerView *)picker titleForElementAtIndex:(NSInteger)index;
- (UIView *)  horizontalPickerView:(V8HorizontalPickerView *)picker  viewForElementAtIndex:(NSInteger)index;
- (NSInteger) horizontalPickerView:(V8HorizontalPickerView *)picker widthForElementAtIndex:(NSInteger)index;

The protocol requires the width method to be implemented and for either the title or view *ForElementAtIndex: method to be implemented. (ie: you don't need both)

Using Views for Elements

If you are going to implement the

-horizontalPickerView:viewForElementAtIndex:

data source method, make sure your view conforms to the V8HorizontalPickerElementState protocol.

License

See LICENSE file. TL;DR: I am publishing this under the zlib/libpng license.

Thanks

Thanks for taking the time to check out the project. Let me know via the GitHub issues feature if you find any bugs or have feature requests. Please drop me a note and let me know if you use this in a project that hits the AppStore.

Apps Using this Control

f/stats - Flickr stats for iPhone

Spentory - Expense Transactions inventory for iPhone

  • Submit yours to be included in this list.

관련 프로젝트 살펴보기

불러오는 중…