iOS Color Picker

iOS Color Picker

Released 4 years ago , Last update 4 years ago

Simple and easy color picker for iOS.

The iOS Color Picker is a simple tool to that shows a list of colors and allows the users to select one of them, sending the feedback to your application. The default appearance conforms to the flat design, It has built in animation features for presenting actions.

Features

  • Animated presenting
  • Automatic scaling to the view's frame

Pricing

14 day 14-day money-back guarantee

$1.99

Developer License

  • Perpetual license

  • Unlimited projects

  • Can distribute code and binary products

  • Commercial use

  • 6 months support

Documentation

@protocol MCColorPickerDelegate <NSObject>

@optional

/*
 Callback method fired after the selection of a color
 */
- (void)colorPicker:(MCColorPicker*)colorPicker didSelectColor:(UIColor*)color;

@end

@interface MCColorPicker : MCNewCustomLayeredView

/*
 Array that must contain the colors that will be displayed on the control
 */
@property (nonatomic, strong) NSMutableArray *colors;

/*
 The current selected color. Starts nil
 */
@property (nonatomic, strong, readonly) UIColor *currentColor;

/*
 The current selected color. Starts nil
 */
@property (nonatomic, assign) id<MCColorPickerDelegate>delegate;

/*
 Causes the control to redraw it self, calling all the data source methods
 to apply the new data.
 */
- (void)reloadData;

/*
 Animates the control
 */
- (void)animate;

Setup / installation

Installation

  1. Add all files from the src folder to your project
  2. Import as usual: #import "MCColorPicker.h"
  3. Add QuartzCore.framework to your project

Setup

MCColorPicker can be added to your view either from the Interface Builder or through code.

Interface Builder (Xcode 5):

  • Open the Storyboard or Xib file you want to add the pie chart to.
  • Drag a new UIView from the Object Library into your view controller.
  • Resize and position your new UIView as you wish (the pie chart will be drawn on the center of the new UIView).
  • Make sure the new UIView is selected and choose the Identity Inspector tab on Xcode's the Utilities view (on the right).
  • Change the class from UIView to MCColorPicker.
  • On the view controller's header file create an IBOutlet property of the type MCColorPicker and link it to the object you created on the Interface Builder.

Through Code:

CGRect frame = CGRectMake(x, y, width, height);
MCColorPicker *colorPicker = [[MCColorPicker alloc] initWithFrame:frame];
[self.view addSubview:colorPicker];

Example usage

self.colorPicker.colors = [[NSMutableArray alloc] initWithObjects:
                               [UIColor redColor],
                               [UIColor yellowColor],
                               [UIColor greenColor],
                               [UIColor blueColor],
                               [UIColor grayColor],
                               nil];

self.colorPicker.delegate = self;
1 license From » $1.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
No comments have been posted yet.