I have two UIImageView
's, and I want to concatenate them both to be one UIImageView
. To let you know, the images have some transparency to them so you will see both of them. Als they are the same size.
views:
56answers:
2
+1
A:
If you want to overlay one imageView over another, just set its backgroundColor to clear and move it over, either using IB or directly setting its frame via code.
Ben Gottlieb
2009-12-30 04:40:47
A:
hey if you are using two static image-views then you can do the this by taking the screen-shot with this code
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *savedImg = UIGraphicsGetImageFromCurrentImageContext();//here is the final image
UIGraphicsEndImageContext();
[pool release];
Hope this helps.
Madhup
2009-12-30 05:21:05