I have a NSString object. I want to write it to existing UIImage object. UIImage object already has some image associate with it. I want to write string to same image. How do i
You would draw (composite) both the image and the string into a graphics context, and then grab the resulting UIImage.
To draw the image use renderInContext
.
To draw the text use CGContextShowTextAtPoint
.
To get the resulting image
UIImage *compositeImage = UIGraphicsGetImageFromCurrentImageContext();