Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8380107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:22:23+00:00 2026-06-09T16:22:23+00:00

I am trying to output a high res version of my iPhone interface. I

  • 0

I am trying to output a high res version of my iPhone interface. I am using labels imagesViews and textViews to create the content. I am using renderInContext to make a high res image of the main view, and scaling the content to match. The labels and imageViews seem to work perfectly, but the textView is hiding the text for some when it’s scaled an positioned properly.

Here is the basic code:

UIGraphicsBeginImageContext(CGSizeMake(1536, 2048));
myExportView.frame = CGRectMake(0, 0, 1536, 2048);
[myLabel setFrame:CGRectMake(myLabel.frame.origin.x*4.4232, myLabel.frame.origin.y*4.4232, myLabel.frame.size.width*4.4232, myLabel.frame.size.height*4.4232)];
[myLabel setFont:[UIFont fontWithName:@"Arial" size:myLabel.font.pointSize*4.4232]];
[myTextView setFrame:CGRectMake(myTextView.frame.origin.x*4.4232, myTextView.frame.origin.y*4.4232, myTextView.frame.size.width*4.4232, myTextView.frame.size.height*4.4232)];
[myTextView setFont:[UIFont fontWithName:@"Arial" size:myTextView.font.pointSize*4.4232]];
[[myExportView layer] renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(image,nil,nil,nil);

Here is a visual of the interface and the output with the 640 × 960 interface on the left and my 1536 × 2048 output image on the right (as intended) Note that the label and the textView have scaled properly, but the text in the textView is gone.

enter image description here

Here is the project itself if you want to take a look: owolf.net/uploads/StackOverflow/exportTest.zip

enter image description here
UPDATE here is the textView, on the left, scaled up in every way to 4.5 except in the x it’s only *2, on the right the x is scaled to 3. Note the text starts to get clipped.

Any ideas? Help much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:22:24+00:00Added an answer on June 9, 2026 at 4:22 pm

    I ended up using a label for this. See this thread for the solution:

    Top aligned UILabel, make text stick to top of label view -ios

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to output dates in the Italian format using date() as follows:
I'm trying to output unicode string into RTF format. (using c# and winforms) From
I'm trying to wrap a c library in a high-level python interface with Boost.Python.
I'm trying to write a simple high-low program that will output like this: $
Trying to output a pointer's address in decimal form using the %zu conversion specifier.
I'm trying to output a sentence containing 4 variables, with their values emboldened using
I am trying to create a high quality thumbnail of this image, with Java
I am trying to output the value of x in the following request: http://localhost:4827/Default.aspx?x=123123
I am trying to output JSON directly in my Razor view. The object being
I am trying to output a lot of data (membership record) into a JTextArea,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.