Giter Site home page Giter Site logo

yunzixun / tysnapshotscroll Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonyreet/tysnapshotscroll

0.0 1.0 0.0 19.13 MB

仿简书和iMark,将UIScrollView,UITableView,UIWebView,WKWebView,保存为图片进行查看,方便分享

License: MIT License

Objective-C 100.00%

tysnapshotscroll's Introduction

TYSnapshotScroll

##将scrollView相关的页面保存为图片,支持UIScrollView,UITableView,UIWebView,WKWebView。

更新内容:

----------------- 2016.12.8更新 -------------

1、修改iOS10权限问题

2、修改截图的清晰度,demo地址使用简书地址

###使用方法

  • 1、引入头文件:
#import "UIScrollView+TYSnapshot.h"
  • 2、使用以下方法
[UIScrollView setTYSnapshotDebugLog:YES];
UIImage * snapshotImg = [UIScrollView getSnapshotImage:self.webView.scrollView];

注意: 1、方法

+(UIImage *)getSnapshotImage:(UIScrollView *)scrollView;

scrollView为对应的scrollView,比如UIWebView传入webView.scrollView

![TYSnapshotScroll] (https://github.com/TonyReet/TYSnapshotScroll/blob/master/Snapshot.gif)

tysnapshotscroll's People

Contributors

songjiang1999 avatar tonyreet avatar

Watchers

Jornathan Thorne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.