InfinitApps/InfColorPicker
소개
iOS color picker view controller which presents a hue bar and a saturation/brightness box to allow selection of any RGB color.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThe InfinitApps Color Picker, known as InfColorPicker, is a view controller for use in iOS applications to allow the selection of a color from RGB space, but using an HSB representation of that color space to make selection of a color easier for a human.

InfColorPicker is distributed with an MIT license.
It is ARC-based and supports iPhone OS 5 and later (with one small change it could be made compatible back to iOS 4 if that's necessary).
Usage
The main component is the InfColorPickerController class, which can be instantiated and hosted in a few different ways, such as in a popover view controller for the iPad, pushed onto a navigation controller navigation stack, or presented modally on an iPhone.
The initial color can be set via the property sourceColor, which will be shown alongside the user-selected resultColor color, and these can be accessed and changed while the color picker is visible.
In order to receive the selected color(s) back from the controller, you have to have an object that implements one of the methods in the InfColorPickerControllerDelegate protocol.
Example
- (void) changeColor
{
InfColorPickerController* picker = [ InfColorPickerController colorPickerViewController ];
picker.sourceColor = self.color;
picker.delegate = self;
[ picker presentModallyOverViewController: self ];
}
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
{
self.color = picker.resultColor;
[ self dismissModalViewControllerAnimated: YES ];
}
관련 프로젝트 살펴보기
불러오는 중…