:point_up_2: Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).
2.96k
stars
412
forks
source link
Change renderInContext to drawViewHierarchyInRect in imageWithView #99
Open
frapsMatheus opened 8 years ago
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