Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Monaj

macrumors regular
Original poster
May 24, 2009
193
0
Hi All

I have two UIImageView on the UIView. Each UIImageView have one UIImage. Now i want create an one UIImage from two UIImageView.

I did get way to do.
thanks
Monaj
 
Get the two underlying UIImages. Create a new UIImage the size that you want the resulting image to be. Lock focus on that new image. Draw the first image. Draw the second image. Unlock focus.

And no, I'm not going to provide code: that should be more than enough to work it out using the documentation.

Edit: OK that's too desktop Cocoa based to work: you can't lock focus on a UIImage. Try UIGraphicsBeginImageContext(), UIGraphicsGetImageFromCurrentImageContext() and UIGraphicsEndImageContext() instead.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.