I'm developing painting app in this app i'm using ACEDrawing tool to draw over the view. But , I've to cut particular portion of the painting and to paste at anywhere on the view. I can copy the paintings of the view as a image. my code is here
CGSize size = [view bounds].size;
UIGraphicsBeginImageContext(size);
[[view layer] renderInContext:UIGraphicsGetCurrentContext()];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
but ,I can paste it only as a image using UIImageView. I don't know how to paste it as a painting over view then only I can erase or redraw.
Thanks In Advance. My mail:- darunrant@gmail.com
Aucun commentaire:
Enregistrer un commentaire