SimpleColorPicker是一个非常简单的、垂直的、类似snapchat的颜色选择器,适用于iOS。
SimpleColorPicker可通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile
pod "SimpleColorPicker"
#import "SimpleColorPickerView.h"
SimpleColorPickerView *simpleColorPickerView = [[SimpleColorPickerView alloc] initWithFrame:yourRect withDidPickColorBlock:^(UIColor *color) {
// Your code here
}];
[yourView addSubview:simpleColorPickerView];
要运行示例项目,请先从仓库中克隆项目,然后首先在Example目录中运行pod install
。
Daniel Olshansky, [email protected]
SimpleColorPicker在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。