CCScreenShot 0.0.1

CCScreenShot 0.0.1

Addition维护。



  • 蔡成汉

CCScreenShot

CI Status Version License Platform

使用

方法如下,可直接返回截图图片,或者使用block回调。

- (UIImage *)screenShot;
- (UIImage *)screenShotWithIndicator;
- (void)screenShot:(void(^)(UIImage *image))complete;
- (void)screenShotWithIndicator:(void(^)(UIImage *image))complete;

安装

支持使用 CocoaPods 进行安装

pod 'CCScreenShot', '~>0.0.1'

证书

CCScreenShot受MIT协议许可,请查阅LICENSE文件以获取更多信息。

更新说明

  • 0.1.0 CCScreenShot构建。

补充

  • 屏幕截图,支持UIView、UIScrollView、UITableView、UIWebView、WKWebView等。
  • 前提条件是目标View需使用frame布局,因为里面有重置目标View的frame。若使用Autolayout布局,但仍想使用截图功能,则需要修改源码中重置frame的代码(注释行代码),改用autolayout重置frame。
  • 未进行大规模测试。