UIGraphicsBeginImageContext(theView.contentSize);
CGContextRef context = UIGraphicsGetCurrentContext();
[theView setNeedsLayout];
[theView.layer renderInContext:context];
UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSLog(@"theImage %@",theImage);
return theImage;
I want to save an image of the textView but I can't catch the full textView. The image only shows the text which is displayed on the screen. I am not an American so my English is so poor and I can't get the answer from our TC website.