kkc

KKColorListPicker

Color list picker for iOS > 7.0 with Crayola colors

Showing:

Popularity

Downloads/wk

0

GitHub Stars

65

Maintenance

Last Commit

5yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

KKColorListPicker

Color collection picker for iOS > 7.0 with Crayola and Pantone colors.

Screenshots

Install

  1. Over cocoapods
pod install 'KKColorListPicker'
  1. You can drag the src/KKColorListPicker folder to your project. This library must be ARC enabled.

Use

At first

#import "KKColorListPicker.h"

Then in yours controller for example:

- (IBAction)PresentColorList:(id)sender {
    KKColorListViewController *controller = [[KKColorListViewController alloc] initWithSchemeType:KKColorsSchemeTypePantone];
    controller.delegate = self;
    [self presentViewController:controller animated:YES completion:nil];
}

Or you can user KKColorListViewController as root in UINavigationController:

- (IBAction)presentInNavController:(id)sender {
    KKColorListViewController *controller = [[KKColorListViewController alloc] initWithSchemeType:KKColorsSchemeTypeCrayola];
    controller.delegate = self;
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller];
    [self presentViewController:navController animated:YES completion:nil];
    
}

Delegate method for getting choosen color:

- (void)colorListController:(KKColorListViewController *)controller didSelectColor:(KKColor *)color;

You could simply customize appearance of color list controller:

@property (nonatomic, strong) NSString *headerTitle;
@property (nonatomic, strong) UIColor *selectedCellBorderColor;
@property (nonatomic, assign) CGFloat selectedCellBorderWidth;
@property (nonatomic, strong) UIColor *backgroundColor;

License

MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100