Latest | 1.0.1 |
---|---|
Homepage | https://github.com/adorkable/ColorMapView |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
ColorMapView is a simple iOS View mapped to a color gradient. Great for color picker type dealies.
Installation
ColorMapView is available through cocoapods, to install simple add the following line to your PodFile
:
pod "ColorMapView"
Alternatively you can clone the github repo.
Setup
Once you’ve installed the class:
- Include the ColorMapView header
#import <ColorMapView/ColorMapView.h>
- From there you can either create your ColorMapView instance in Interface Builder or in code by using:
ColorMapView *colorMapView = [ [ColorMapView alloc] initWithFrame:(CGRect)frame];
- The view provides an easy way to get the color at a location within the view.
[colorMapView getColorAtLocation:CGPointMake(50, 200) ];
Latest podspec
{ "name": "ColorMapView", "version": "1.0.1", "summary": "simple iOS View mapped to a color gradient.", "description": " **ColorMapView** is a simple iOS View mapped to a color gradient. Great for color picker type dealies.n", "homepage": "https://github.com/adorkable/ColorMapView", "screenshots": "https://github.com/adorkable/ColorMapView/blob/master/Screenshots/screenshot1.png?raw=true", "license": "MIT", "authors": { "Ian G": "[email protected]" }, "social_media_url": "http://twitter.com/yoiang", "platforms": { "ios": "7.0" }, "source": { "git": "https://github.com/adorkable/ColorMapView.git", "tag": "1.0.1" }, "source_files": "ColorMapView/**/*.{h,m}", "requires_arc": true }
Sat, 05 Mar 2016 07:19:03 +0000