Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caichenghan/ccscreenshot
屏幕截图
https://github.com/caichenghan/ccscreenshot
ccscreenshot screensaver screenshot
Last synced: 19 days ago
JSON representation
屏幕截图
- Host: GitHub
- URL: https://github.com/caichenghan/ccscreenshot
- Owner: CaiChenghan
- License: mit
- Created: 2018-07-13T02:54:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T06:24:17.000Z (over 6 years ago)
- Last Synced: 2025-01-22T19:38:58.723Z (20 days ago)
- Topics: ccscreenshot, screensaver, screenshot
- Language: Objective-C
- Size: 66.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CCScreenShot
[![CI Status](https://img.shields.io/travis/[email protected]/CCScreenShot.svg?style=flat)](https://travis-ci.org/[email protected]/CCScreenShot)
[![Version](https://img.shields.io/cocoapods/v/CCScreenShot.svg?style=flat)](https://cocoapods.org/pods/CCScreenShot)
[![License](https://img.shields.io/cocoapods/l/CCScreenShot.svg?style=flat)](https://cocoapods.org/pods/CCScreenShot)
[![Platform](https://img.shields.io/cocoapods/p/CCScreenShot.svg?style=flat)](https://cocoapods.org/pods/CCScreenShot)## 使用
方法如下,可直接返回截图图片,或者使用block回调。
```
- (UIImage *)screenShot;
- (UIImage *)screenShotWithIndicator;
- (void)screenShot:(void(^)(UIImage *image))complete;
- (void)screenShotWithIndicator:(void(^)(UIImage *image))complete;
```## 安装
支持 [CocoaPods](https://cocoapods.org) 安装
```ruby
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。
- 没有做大规模测试。