UIGraphicsBeginImageContext(theView.contentSize);
CGContextRef context = UIGraphicsGetCurrentContext();
[theView setNeedsLayout];
[theView.layer renderInContext:context];
UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSLog(@"theImage %@",theImage);
return theImage;
テキストビューの画像を保存したいのですが、テキストビュー全体をキャッチできません。画像は、画面に表示されるテキストのみを示しています。私はアメリカ人ではないので、英語が苦手で、TC の Web サイトから回答を得ることができません。