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

The Archive Base Latest Questions

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

I have installed Xcode 4.5.1 and I have one app developed for iOS 5.

  • 0

I have installed Xcode 4.5.1 and I have one app developed for iOS 5. I would like to upgrade the project for I can publish application upgrade including new launch image for 4″ retina display.

The problem is that when I run on iPhone 6 simulator the application shows black bar above and bellow as Apple says. But, when I insert the launch image for new 4″ (640×1136) in this moment, I run on iPhone 6 simulator show correctly the new launch image but background images from App show bad because the app it seems that run with complete screen instead continuing shows black bar above and bellow as I want.

Therefore if I don’t insert new launch image for 4″ I can’t publish any new update of my app, but, if I insert the new launch image for 4″ the app shows wrong all viewcontroller because the background images and layout was design form 3’5″ display… is this correct?

How to I solve this situation, I must control in code if the size of screen is 4″ I put one image from this new resolution if not, the current image?

  • 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-12T14:10:55+00:00Added an answer on June 12, 2026 at 2:10 pm

    Your app’s background images will all need to be updated to support the 4″ size. In addition, simply creating versions of the app with a suffix *-568h@2x.png will NOT automatically get them used (like *@2x.png does over *.png).
    You’re going to have to modify your code to determine the size of the screen, and if it is 568 in height then you replace the image in your background image view with the -568h version. You can search here for many answers. What I use is fairly simple:

    - (void)viewDidLoad {
        [super viewDidLoad];
        // for iPhone 5
        // assume self.bgView is a background view
        CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
        if ([UIScreen mainScreen].scale == 2.f && screenHeight == 568.0f) {
            self.bgView.image = [UIImage imageNamed:@"SomeImage-568h@2x"];
        }
    ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed OS X Lion and XCode 4.1. I have an app that
Background: I have Xcode 3.2.3 installed and want to distribute a project, ideally to
My iphone is upgraded to iOS 4.3.3. Then I can't debug my app (xcode
Using the Python templates for Xcode, I have a simple project running on one
Is it possible to have more than one version of Xcode installed at the
I have installed Xcode 4.3.1. I am looking for the texturetool that is used
I have a brand new MacBook (air if it matters). I have installed Xcode
If I type xcodebuild -version it recognises that I have xcode installed: Xcode 4.3.2
I have installed Google Toolbox for Mac into Xcode and followed the instructions to
Currently I am using xCode 3.2.5 and I have already installed cocos2d template cocos2d

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.