<code tips> Save UIView 's Snapshot.
|
|
UIGraphicsBeginImageContext(myView.bounds.size);
[myView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
|
Never giveup. Thanks the world.
浙公网安备 33010602011771号