sudeepag/SAConfettiView

How to get Screenshot of this animation.....?

Opened this issue · 0 comments

Here is my code.

UIGraphicsBeginImageContextWithOptions(editingView.bounds.size, NO, 0.0);
[editingView drawViewHierarchyInRect:editingView.bounds afterScreenUpdates:NO];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

if i write like this, I am miss snapshot data. If I replace afterScreenUpdates is YES screen is blinking and updating. even i didn't get my desire output. can any one help me on this issue.?