CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Color collection picker for iOS > 7.0 with Crayola and Pantone colors.
pod install 'KKColorListPicker'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;MIT License