Latest | 0.1.1 |
---|---|
Homepage | https://github.com/GiantThinkwell/HSVColorPicker |
License | MIT |
Platforms | ios 7.0, requires ARC |
Frameworks | UIKit |
Authors |
[](https://travis-ci.org/Nicholas Hart/HSVColorPicker)
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
HSVColorPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "HSVColorPicker"
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.
TODO
- implement autolayout support
- implement support for UIControlEventValueChanged
- 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.
Latest podspec
{ "name": "HSVColorPicker", "version": "0.1.1", "summary": "An iOS HSV Color Picker control", "description": " An iOS HSV Color Picker controlnn * Based on UIView and OpenGLn * Very easy to usen * MIT Licensedn", "homepage": "https://github.com/GiantThinkwell/HSVColorPicker", "license": "MIT", "authors": { "Nicholas Hart": "[email protected]" }, "source": { "git": "https://github.com/GiantThinkwell/HSVColorPicker.git", "tag": "0.1.1" }, "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Pod/Classes", "resource_bundles": { "HSVColorPicker": [ "Pod/Assets/*.png" ] }, "public_header_files": "Pod/Classes/**/*.h", "frameworks": "UIKit" }
Sat, 05 Mar 2016 01:10:03 +0000