TonyReet/TYSnapshotScroll
À propos
Enregistre une capture d’écran d’une vue défilante sous forme d’image longue avec une seule ligne de code. Prend en charge UIScrollView, UITableView, UICollectionView, UIWebView et WKWebView, ainsi que les pages Web. Compatible avec iOS 13.
Design et médiasProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalTYSnapshotScroll
English|简体中文
一句代码保存截图,将scrollView相关的页面保存为图片,支持UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView。(支持iOS16)
Save the scroll view page as an image,support UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView。
- iOS16
- UIScrollView嵌套UITableVieW
- UIScrollView
- UITableView
- UICollectionView
- WKWebView
- UIWebView
0.1.9版本已经去掉UIWebView,如果需要使用UIWebView,请使用"版本号-UIWebView",例如"0.1.9-UIWebView"
修复iOS13ScrollView和WKWebView只能截取一屏的问题,请升级至0.1.4以上版本
使用真机调试,模拟器测试发现有问题
iOS 16 UIScrollView 图层有改变,需要升级到0.4.0
方法一:cocopods
- 1、在Podfile文件里面添加
pod 'TYSnapshotScroll'
- 2、pod install,对应文件添加头文件
#import <TYSnapshotScroll.h>
- 3、如果出现提示"Undefined symbols for architecture arm64" 可以在"Other Linker Flags"添加"$(inherited)"
方法二:手动添加
1、下载TYSnapshotScroll,将TYSnapshotScroll放到工程中
2、引入头文件:
#import "TYSnapshotScroll.h"
用法
//在需要截图的地方调用此方法
[TYSnapshotScroll screenSnapshot:yourView finishBlock:^(UIImage *snapShotImage) {
// doSomething
}];
正常:
UIScrollView嵌套UITableView:
Explorer des projets similaires
Chargement…