I have two overlapping images. If I erase part of the above image, that particular part is erased and the main image appears. But if I take this part off, I have to return the erased part of this image.
I do not need the undo functions, but only the erased part should appear.
Here is the code that I use to remove the above image:
TouchEnglish event:
UIGraphicsBeginImageContext(frontImage.frame.size); [frontImage.image drawInRect:CGRectMake(0, 0, frontImage.frame.size.width, frontImage.frame.size.height)]; CGContextSetLineCap(UIGraphicsGetCurrentContext(),kCGImageAlphaNone);
Please help me in solving this problem.
Thanks to everyone in advance.
source share