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 8615335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:21:09+00:00 2026-06-12T05:21:09+00:00

iPhone 5 released, with new screen size and resolution. When we used images for

  • 0

iPhone 5 released, with new screen size and resolution.

When we used images for iPhone 4 (retina), we just added “@2x” to image name.
Can anybody tell me, is it possible to add different images (backgrounds, buttons, etc), for new iPhone screen?

And the second question: can I have in my app separate XIB files: for iPhone old, iPhone new (like for iPhone and iPad)?

Thank you!

  • 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-12T05:21:10+00:00Added an answer on June 12, 2026 at 5:21 am

    Here’s an except from my blog about this subject:

    [UIImage imageNamed:] automatically loads @2x versions of images when running on a retina device. Unfortunately, imageNamed: will NOT automatically load -568h@2x versions of images when running on an iPhone 5.

    Sometimes this doesn’t matter, for example icons and non-full screen graphics are probably the same on iPhone 4 & 5. However, if you have full-screen background images, or full-width / height background images for toolbars etc you will have problems. Your 480-high images will most likely get stretched (and will probably look horrid as a result).

    You can manually check the screen size and load the right image like this:

    UIImage* myImage;
    CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
    if ([UIScreen mainScreen].scale == 2.f && screenHeight == 568.0f) {
       myImage = [UIImage imageNamed:@"myImage-568h.png"];
    } else {
       myImage = [UIImage imageNamed:@"myImage.png"];
    }
    

    There’s a way of altering UIImage imageNamed so it does automatically load the right image. See link below for details.

    More at: http://pervasivecode.blogspot.co.uk/2012/09/making-apps-work-on-iphone-5-screen-size.html

    EDIT: @Sound Blaster & @GrizzlyNetch are right, in code you should use imageNamed:@”myImage-568h.png”] but the actual file name should be myImage-568h@2x.png. If you don’t do this, then the scale is incorrect, just like they said.

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

Sidebar

Related Questions

I released a new iPhone app 5 days ago. Already it has received high
I recently released a new version of my iPhone app that was built for
Obviously Apple just released the new iPad . As far as developers are concerned,
guys.i'm new to iphone. i encounter a problem.the uiimageview can't release...here is the code.
Well you know they just released this new XCode 4 version thing...... I am
I am new to iPhone Development. here is my code : - (void)setImage:(UIImage *)image
According to this post on Daring Fireball a new iPhone SDK Agreement release in
I've released some iPhone apps to the App Store, and some of them had
The iPhone app that I released is a wireless game controller, it translates touches
I initially released my first Rails app (an API for our iPhone application) a

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.