Latest 0.0.1
Homepage https://github.com/Teacher-Fu/FQScreenshot
License MIT
Platforms ios 10.0, requires ARC
Frameworks UIKit, Foundation
Authors

FQScreenShot

一句代码保存截图,将View相关的页面保存为图片,支持 UIView,UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView。支持iOS11


方法一:cocopods

  • 1、:
在Podfile文件里面添加:pod 'FQScreenShot'
  • 2、:对应文件添加头文件
import FQScreenShot

//在需要截图的地方调用此方法
FQScreenShot.screenShot(yourView) { (shotImage) in
            toDoSomething
}

方法二:手动添加

  • 1、引入头文件:
import FQScreenShot
  • 2、使用以下方法
//在需要截图的地方调用此方法
FQScreenShot.screenShot(yourView) { (shotImage) in
            toDoSomething
}

FQScreenShot

Latest podspec

{
    "name": "FQScreenshot",
    "version": "0.0.1",
    "summary": "A snapshot library.",
    "description": "A snapshot library .",
    "homepage": "https://github.com/Teacher-Fu/FQScreenshot",
    "license": "MIT",
    "authors": {
        "Teachre-Fu": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/Teacher-Fu/FQScreenshot.git",
        "tag": "0.0.1"
    },
    "swift_versions": "4.2",
    "source_files": "FQScreenshot/*.swift",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This