Posts

Post not yet marked as solved
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.
Posted
by WoLich.
Last updated
.