Latest 0.0.1
Homepage https://github.com/CaiChenghan/CCScreenShot
License MIT
Platforms ios 8.0
Authors

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 is available under the MIT license. See the LICENSE file for more info.

更新说明

  • 0.1.0 CCScreenShot构建。

补充

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

Latest podspec

{
    "name": "CCScreenShot",
    "version": "0.0.1",
    "summary": "u5c4fu5e55u622au56fe",
    "description": "iOSu5c4fu5e55u622au56fe",
    "homepage": "https://github.com/CaiChenghan/CCScreenShot",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u8521u6210u6c49": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CaiChenghan/CCScreenShot.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CCScreenShot/*.{h,m}"
}

Pin It on Pinterest

Share This