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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:27:05+00:00 2026-06-11T09:27:05+00:00

Possible Duplicate: How to deal with iPhone 5 screen size? So with the release

  • 0

Possible Duplicate:
How to deal with iPhone 5 screen size?

So with the release of iPhone 5 today and a larger screen height, how do we accommodate for different screen sizes across the different iPhone variants in our apps. I understand that apps which are not updated for iPhone 5 will be “letter boxed”, but what about backwards compatibility?

Is there a way to check whether the app is running on an iPhone 3, 4 or 5?

  • 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-11T09:27:06+00:00Added an answer on June 11, 2026 at 9:27 am

    You normally don’t need that, because checking the hardware is not the right approach.

    If you need to base decisions in your app on the screen size, like accomodate to the screen size for your UI, you should… test the screen size, not make some conditions on the hardware. Always test what is really necessary.

    Use [UIScreen mainScreen].bounds for that (as you should always have done). Note that even before iPhone 5, one could plug its iPhone on a videoprojector or external screen and display its app on a screen with different resolution than the iPhone. That’s why I hope that you never use magic numbers in your code (And if you did, you know why it’s bad now ;)) and was already using constants or asking at runtime for the size of your screen.


    Anyway, to accomodate for different screen sizes, if you configured your autoresizing mask correctly in your views, your applications will resize automagically. You just need to provide a Default-h568@2x.png launch image and your app will take the full size of the 4″ screen.

    Moreover, starting iOS6, you will be able to use AutoLayout to do finer constrainted layout of your views. See the WWDC’12 videos sessions that explains it in detail.

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

Sidebar

Related Questions

Possible Duplicate: How to deal with iPhone 5 screen size? Watched the iPhone 5
Possible Duplicate: How to deal with iPhone 5 screen size? We know that apps
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: recommend a library/API to unzip file in C# deal all plz suggest
Possible Duplicate: Design Pattern for Undo Engine In general, how do you deal with
Possible Duplicate: Can Super deal with multiple inheritance? Python inheritance? I have a class
Possible Duplicate: Why is an MD5 hash created by Python different from one created
Possible Duplicate: In Java: How to zip file from byte[] array? Here's the deal,
Possible Duplicate: How to deal with deprecated classes in Android to keep compatibility I
Possible Duplicate: How to downsize std::vector? It seems that std::vector will not release memory

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.