ZCEasyLibrary
对 iOS 常用功能进行封装,提高开发效率
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :iOS, '8.0'
target 'TargetName' do
pod 'ZCEasyLibrary', '~>2.1.3'
end
代码使用示例
//无限滚动Banner
ZCBannerView *banerScrollView = [[ZCBannerView alloc] initWithFrame:CGRectMake(0, 240, self.view.frame.size.width, 200)];
[self.view addSubview:banerScrollView];
[self.banerScrollView zc_initBanner:[[NSBundle mainBundle] pathsForResourcesOfType:@"png" inDirectory:@"main_banner.bundle"]];
self.banerScrollView.zc_selectImageView = ^(UIImageView *imgView, NSInteger index) {
NSLog(@"您选中了第%ld张banner", (long)index);
};
//view截屏
UIImage *img = view.zc_screenCapture;
更多功能请查看 framework 头文件