i want to get a multiple line string from a UITextView and draw it on a image,
the position of text in the image must exactly same as the position in UITextView but i dont want jus add the textView to UIImageView, i need a new image consists of those text, is it possible? any suggestion to do that?
Iphone – how to draw text on a image from a UITextView consist of multiple line string
iphoneuitextview
Best Answer
You can capture the contents of any UIView into a UIImage. First, create an empty UIView and position your UIImageView and UITextView as subviews:
Now create a graphics context and draw parentView into it:
You now have a UIImage with the contents of your UIImageView and UITextField to display, save, or send over the network.