Post not yet marked as solved
Post marked as unsolved with 1 replies, 677 views
HiUIGraphicsBeginImageContext(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.