CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.

HSVColorPicker 0.1.1

HSVColorPicker 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Nicholas Hart.



  • By
  • Nicholas Hart

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

HSVColorPicker uses UIKit and OpenGL.

Installation

Adding To Your Code

Currently you must use initWithFrame: to initialize HSVColorPicker. If you use it in a Storyboard with auto layout it will not work, because initWithFrame: is not called. eg:

- (void)viewDidLoad {
    [super viewDidLoad];
    // add the color picker and set ourselves as the delegate
    HSVColorPicker * colorPicker = [[HSVColorPicker alloc] initWithFrame:self.view.frame];
    colorPicker.delegate = self;
    [self.view addSubview:colorPicker];
}

Be sure to implement the HSVColorPickerDelegate in your view controller so you can respond to changes. eg:

- (void)colorPicker:(HSVColorPicker *)colorPicker changedColor:(UIColor *)color {
    // update your UI with color
}

Screen Shot

Below is a screen shot of the example app, which shows what the HSVColorPicker control looks like.

screen shot

TODO

  1. implement autolayout support
  2. implement support for UIControlEventValueChanged
  3. implement unit tests

Author

Alex Klein, [email protected]

Nicholas Hart, [email protected]

License

HSVColorPicker is available under the MIT license. See the LICENSE file for more info.