Giter Site home page Giter Site logo

kzcolorpicker's Introduction

Note: You can find a new(er) version here

Color Picker

A HSV Color Picker control and a sample view controller as an example on how to user it. You can use the controller as-is in your own projects, or you could use the KZColorPicker control instead. The control uses the standard target-action mechanism (via the UIControlEventValueChanged event).

Current Version: 1.0

Version History: 1.0 Initial Release Sep 1 / 2012

License Copyright (c) 2012, Alex Restrepo - KZLabs All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

kzcolorpicker's People

Contributors

alexrestrepo avatar csteynberg avatar jivadevoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kzcolorpicker's Issues

KZColorPicker wont build on XCode 4.6.3

When I run the program, I get...

Use of Undeclared Identifier IS_IPAD on line 30 of file "CMQGDefaultColorViewController.m".

Can you help me with this?

John

License

I'm confused with the license. It's quite uncommon for code to be under a CC license. Especially this block is very subjective:

"Share Alike - If you alter, transform, or build upon this work, you may distribute the resulting
work only under the same, similar or a compatible license."

How's "build upon" defined? Somehow reading this kinda reminds me of the GPL - even if you might not intended it but this license is too "fluffy" to be used in commercial projects. The CC creators even explicitly recommend against using it for code.

MIT or BSD would be great options.

IOS 12

Hi
Will the color picker compile on IOS12? if not - hints appreciated
Thanks

Enabling / Disabling sliders & swatches

Is it not an idea to enable or disable the sliders and swatches in the color picker based on variables or initialization? for my project for example, i do not need the alpha slider, but that would mean i need to perform a lot of work to get it into the right position and hide it.

EXC_BAD_ACCESS KZColorPickerSwatchView on line 49

in the file file KZColorPickerSwatchView on line 49 there is the line:

self.checkmarkLayer.contents = (id)[UIImage imageNamed:@"MNColorViewCheckmark.png"].CGImage;

This line gives me a EXC_BAD_ACCESS error when activating the ColorPicker on the iPhone 4S, Simulator runs fine.

complete exception (detected by setting a breakpoint at all exceptions on throw):

2013-11-26 08:23:50.012 activiteitenweger[2868:60b] -[NSPathStore2 setContents:]: unrecognized selector sent to instance 0x16dcb860
2013-11-26 08:24:02.871 activiteitenweger[2868:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSPathStore2 setContents:]: unrecognized selector sent to instance 0x16dcb860'

xcode version 5.0.1
SDK 7.0
playing on a iPhone 4S device (not in simulator)

(by the way: the image used in there was not to be found attached to your library, i think you mean the same file as in MNKit? https://bitbucket.org/aquarius/mnkit/src/88540ab62e2425555f1e226478513876e04165a7/Frameworks/UIKit/Resources/MNColorViewCheckmark.png?at=default )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.