1 Star 2 Fork 2

TonyReet / TYSnapshotScroll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
任涛 提交于 2020-05-22 13:40 . 修改readme

TYSnapshotScroll

English|简体中文

Save the scroll view page as an image,support UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView.(Support iOS13)

  • iOS13
  • UITableVieW in UIScrollView
  • UIScrollView
  • UITableView
  • UICollectionView
  • WKWebView
  • UIWebView

  • Fix bug on iOS13,please update the lastest version(0.1.4)

  • Pelease use real machine to debug, simulator has some problems


Cocoapods

  • 1、Add the following line to your Podfile:
pod 'TYSnapshotScroll'
  • 2、Then, run the following command:
pod install
  • 3、import .h file:
#import <TYSnapshotScroll.h>
  • 4、if have error "Undefined symbols for architecture arm64" add "$(inherited)" into "Other Linker Flags"

Manually

  • 1、download "TYSnapshotScroll",drag "TYSnapshotScroll" into the project

  • 2、import .h file: :

#import "TYSnapshotScroll.h"

###Usage

[TYSnapshotScroll screenSnapshot:yourView finishBlock:^(UIImage *snapShotImage) {
        //doSomething
    }];

normal: TYSnapshotScroll-w240

UITableView in UIScrollView:
TYSnapshotScroll-w240

Objective-C
1
https://gitee.com/tonyistudio/TYSnapshotScroll.git
git@gitee.com:tonyistudio/TYSnapshotScroll.git
tonyistudio
TYSnapshotScroll
TYSnapshotScroll
master

搜索帮助