I am using a UITextView to render some text. I am using the following code to render my main view larger, to set the output higher res ( I also scale all the sub-views by the same factor ).
UIGraphicsBeginImageContext(CGSizeMake(ImageView.frame.size.width*4, ImageView.frame.size.height*4));
[outputView setFrame:CGRectMake(outputView.frame.origin.x, outputView.frame.origin.y, outputView.frame.size.width*4, outputView.frame.size.height*4)];
[[outputView layer] renderInContext:UIGraphicsGetCurrentContext()];
Works fine in terms of scaling. The only issue is that the UITextView element will not render properly if it is “off sccreen”. So everything renders fine without the *4 scale factor, but with it the UITextView elements that are pushed off screen are not rendered properly (mostly just blank).
Is there a way to override this, to force it to render?
Thanks for reading
Ended up using labels, just for rendering. So the UIText views are used to display in the interface, and for interaction, but they are temporarily hidden and replaced by labels for rendering.