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

  • Home
  • SEARCH
  • 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 8629045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:42:10+00:00 2026-06-12T08:42:10+00:00

In the Xcode I have like this: In a MyViewController.m I am loading the

  • 0

In the Xcode I have like this:

screenshot

In a MyViewController.m I am loading the image and nicely it is loaded the @2x when needed ( on retina)

tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"emptyList.png"]];

I would like to add another file which would be loaded only on the iPhone 5’s 4″ screen. Is that possible? How can I do it?

  • 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-12T08:42:11+00:00Added an answer on June 12, 2026 at 8:42 am

    The question is not very clear but what I am assuming you are asking is: What is the naming convention for iPhone 5 specific images?

    We already know we can target iPad/iPhone and the retina/standard display of those devices using the:

    .png
    @2x.png
    ~iphone.png
    ~ipad.png
    

    etc.

    Well the question about iPhone 5 specific images has been discussed at length on the Apple Developer Forums, and it’s clear there is no way to do this.

    Notably, one clue was that the Default.png file to trigger 4″ compatible apps had to be named Default-568h@2x.png which triggered a lot of devs thinking that adding the suffix “-568h@2x.png” was the way to go. It’s not. You can find this discussion here on the Apple Developer Forums.

    Usually people look for this as a solution hoping to adapt for the larger screen with larger images. However, you should implement iOS 6’s AutoLayout feature. Remember the iPhone 5’s OS is at min iOS 6, you can also implement your layout with springs and struts otherwise.

    This should be sufficient for scaling to the larger screen. If you wish to have a different layout altogether for the larger screen, you can detect the screen size and adapt accordingly. You can also specify in Xcode a different nib file to use on the 4″ screen. Hope this helps.

    More info on this thread from the Apple Developer Forums.

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

Sidebar

Related Questions

I have an Xcode project with a directory structure like this: MasterProjectDir/projectname.xcodeproj MasterProjectDir/ProjectSubDir/whatever.c MasterProjectDir/ProjectSubDir/etc.c
I've upgraded Xcode and have been presented with tons of analyzer warnings like this:
I have an Xcode project, and in my UIView.h I have this like of
I have an image that looks like this: I am trying to make it
i have searched Xcode controls but doesn't found anything that makes a GridView like
I have a XCode which builds and runs under XCode. I would like to
I have a little issue with Xcode and was wondering if anybody has this
I have a method that returns a CGMutablePathRef , something like this: - (CGMutablePathRef)somePath;
Update: It appears that a recent XCode update may have changed this macro, please
I have this property called mySegmented, declared like this .h @property (retain) UISegmentedControl *mySegmented;

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.