Calling these methods invalidates the CSS animation

Hi


UIGraphicsBeginImageContext(CGSizeMake(100, 100));
// [self.view drawViewHierarchyInRect:CGRectZero afterScreenUpdates:YES];
[self.view snapshotViewAfterScreenUpdates:YES];
UIImage *screenshotimage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();


'[UIView snapshotViewAfterScreenUpdates:YES]' or '[UIView drawViewHierarchyInRect:CGRectZero afterScreenUpdates:YES]'


Calling these methods frequently and setting the 'afterScreenUpdates' parameter to 'YES' will invalidate the CSS animation.

Replies

Has the problem been solved?