You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.
Change
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
To:
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];
It runs much faster. From my tests on my app it went from 0.625468s to 0.014225.
Heres is a better explanation on possible choices and it has a link to why it is better:
http://stackoverflow.com/questions/19066717/how-to-render-view-into-image-faster
The text was updated successfully, but these errors were encountered: