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

The Archive Base Latest Questions

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

Possible Duplicate: iOS 5.1 with Xcode 4.2 and retina in iPad 3 I am

  • 0

Possible Duplicate:
iOS 5.1 with Xcode 4.2 and retina in iPad 3

I am trying to make my app load on iPad 2 (since its running great on iPad 3).
I have downscaled the images and now have 2 sets of images like:
image.png and image@2x.png.
When I try to load the image with:

someImageView.image = [UIImage imageNamed:@"image.png"];

Or through the IB, it does not give me the result I expected (like choosing the correct version of the image depending on the iPad’s display as stated here) and only displays the image.png no matter which iPad runs the application, though when I try to import the image through:

NSString* imagePath = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"png"];
UIImage* someImage = [[UIImage alloc] initWithContentsOfFile:imagePath];
someImageView.image = someImage;

This works just fine and when I run the app on iPad 3 it uses the @2x png file.
Although this works, I am not sure I have to allocate and release every single image I use, since I use some images through IB.
Is that a normal behaviour?

I used SDK 4, 4.2 and 5 but nothing changed, also I am using Xcode 4.2, since I dont want to switch to Lion.

  • I have tried not using someImageView.image = [UIImage imageNamed:@"image.png"]; and just pick the image “image.png” in the IB slot. Didn’t work.
  • I tried with just typing image in the IB slot. Didn’t work. It picks up image.png no matter what.
  • I tried using someImageView.image = [UIImage imageNamed:@"image@2x.png"]; It shows the 2x image in any device.
  • I tried using image@2x~ipad.png and image~ipad.png . Didn’t work.
  • All sets of images are named correct, size is correct and have all been imported to the project in the same group/folder.
  • It is not a universal, but an iPad application.
  • I have cleaned the build several times during the process.

Any help is greatly appreciated!

*UPDATE: UIImage switches to @2x when [UIScreen mainScreen].scale is returning 2. When I check that, it returns 1, which is the reason @2x is not activated. So does anyone know if 4.2 does not recognize iPad3 retina display? I found something similar here.

*UPDATE 2: I managed to get this working by merging SDK 5.1 into the Xcode and using it as base SDK. It didn’t work when I had both SDK 5 and 5.1 in the SDKs folder, worked as a charm when I removed the SDK 5 version.

  • 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-12T04:42:39+00:00Added an answer on June 12, 2026 at 4:42 am

    It’s not working by default, because Xcode 4.3.1 was the first version to support the new iPad (retina)

    If you want to get it working anyways, check this answer

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

Sidebar

Related Questions

Possible Duplicate: A non-nested animation sequence in jQuery? I have an html/css/js iOS app
Possible Duplicate: Procedure to submit iPhone application to App Store? Its my first IOS
Possible Duplicate: Getting current device language in iOS? I have an app which uses
Possible Duplicate: iOS App crashing before entering main() with Xcode 4.2 & iOS 5
Possible Duplicate: iMessage Style Receding Keyboard in an iOS App In the iOS5 Messages
Possible Duplicate: Change icon on of an App in iOS 4 in run-time Is
Possible Duplicate: iPhone development on PC I have developed an iOS native application. My
Possible Duplicate: How can I implement voice recognition into my iOS app? I am
I'm trying to submit my iOS app to the App Store, I have followed
Possible Duplicate: saving data in iOS Do we have a provision profile to select

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.