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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:01:02+00:00 2026-05-27T18:01:02+00:00

Retina iOS device does not show the @2X image, it shows the 1X image.

  • 0

Retina iOS device does not show the @2X image, it shows the 1X image.

I’m using Xcode 4.2.1 Build 4D502, the app is targeting iOS 5.

I’ve created a test app (Master/Detail) and added two images.

iconTest.png 24 x 24
iconTest@2X.png 48 x 48
Each image is unique so it I can easily tell which one is being displayed.

In the ViewDidLoad I’m adding a button to the navigation controller…

UIImage *buttonImage =  [UIImage imageNamed:@"iconTest.png"];
UIBarButtonItem *button = [[UIBarButtonItem alloc] 
                           initWithImage:buttonImage
                                   style:UIBarButtonItemStyleBordered
                                  target:self
                                  action:@selector(share)];
self.navigationItem.rightBarButtonItem = button;

When I run this test app in the iOS Simulator it correctly displays the icon for a retina iOS device. In the simulator, the Hardware->Device-> is set to iPhone (Retina). And when I pause the app and look at the buttonImage object I can see the scale is set to 2.

This works as expected!

However, when I attach my iPhone 4 and run the app the lower resolution image shows up.
And, when I pause the app and look at the buttonImage object I can see the scale is 1.

This is not the expected behavior.

Any ideas about why this is different between the simulator and the real iOS device?

Is this a known issue? Is there a known workaround?

Thanks,
Brian.

  • 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-05-27T18:01:03+00:00Added an answer on May 27, 2026 at 6:01 pm

    Filenames are case sensitive on the iPhone but not on the iPhone Simulator. You need to use @2x instead of @2X.

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

Sidebar

Related Questions

When I build & run my app for iOS 5 in Xcode 4.2 for
For testing not/retina display I've created an UIView with size 100x100. I've create 2
Environment: Xcode 4, ios 5, ipod touch 4th generation with retina display I am
what is the code to detect whether ios app running in iPhone, iPhone Retina
I am using the new Retina display feature of ios 4.0 in my iphone
I have a universal iOS app with a custom view that has three buttons,
I have created two different tilemap s for simple display and retina display. Simple
Wondering if anyone has had any experience using retina assets with the NativeControls iPhone
I've been using Xcode 3.x but today (nov 1st 2011) have downloaded Xcode 4.2
Since the retina display, suddenly this piece of drawing code seems to not work

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.