PNKit
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
PNKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PNKit'
Author
P1nov, [email protected]. WeChat:Fyair000
License
PNKit is available under the MIT license. See the LICENSE file for more info.
Use
PNCarouselView
Use like UITableView. It has two protocol, you should implement two of those functions in where you used it
- (NSInteger)numberOfImageInCarouselView;
- (UIImage *)carouselViewImageInEachIndex:(NSInteger)index;
这是一个轮播图的封装 可以直接使用 用法类似于UITableView
UIColor (category)
there is a category for UIColor, I turn the hex number for UIColor, so you can only use
+ (UIColor *)colorWithRGB:(unsigned int)hex;
to set color you want!