PNKit
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
需求
安装
PNKit 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中即可
pod 'PNKit'
作者
P1nov,[email protected]。微信:Fyair000
许可协议
PNKit 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。
使用
PNCarouselView
使用类似于 UITableView。它有两个协议,您需要在使用它的地方实现这两个函数
- (NSInteger)numberOfImageInCarouselView;
- (UIImage *)carouselViewImageInEachIndex:(NSInteger)index;
这是一个轮播图封装,可以直接使用,用法类似于 UITableViewCell
UIColor (分类)
有一个 UIColor的分类,我转换单色格式的数值,因此您只能使用
+ (UIColor *)colorWithRGB:(unsigned int)hex;
来设置您想要的颜色!