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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:36:39+00:00 2026-05-23T15:36:39+00:00

I read from http://www.apple.com/iphone/specs.html that IPhone4’s screen is 960-by-640-pixel resolution at 326 ppi. But

  • 0

I read from http://www.apple.com/iphone/specs.html that IPhone4’s screen is 960-by-640-pixel resolution at 326 ppi.

But in Xcode’s IPhone4.3 simulator, when I manipulate the display objects, print the [UIScreen mainScreen].applicationFrame, it is 320*480.

So if I wanna use a picture as the main screen’s background of my app, which size I should use? 640*960 or 320*480?

Or Which kind of images should I use ? The size of images can affect the details a lot.

  • 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-23T15:36:39+00:00Added an answer on May 23, 2026 at 3:36 pm

    You can use both.

    If you want to develop apps to Retina Display (iPhone 4), then you should use image with double resolution (640×960), then, when you create your UIImageView, you divide the size by 2.

    CGRect rect = imageView.frame;
    rect.size.width /= 2;
    rect.size.height /= 2; 
    imageView.frame = rect;
    

    Also, you have the option to have a image with @2x on its name, for example myimage@2x.png (640×960). In this case, you don’t need to divide the size. Using this way:

    UIImage * img = [UIImage imageNamed:@"myimage.png"];
    

    Your img var has already divided the size, and if you deploy to iPhone4 it has Retina Display resolution.

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

Sidebar

Related Questions

I have read ray's awsome tutorials on apns from there http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 and i
I read from http://www.packtpub.com/article/friends-via-email-social-web-application-django-1.0 and follow the steps: => And change my setting.py SITE_HOST
There is a great instruction for retrieving iPhone UDID on Safari. http://www.bendytree.com/tips/Getting-an-iPhone-UDID-from-Mobile-Safari I read
I can't read dates from ajax calendar control after date selection http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx I don't
I have read from this article http://codahale.com/how-to-safely-store-a-password/ and it says using a salt isn't
I am trying to build the open source DYLD, published by Apple here: http://www.opensource.apple.com/source/dyld/dyld-97.1/
Firstly, I have read these: (1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul (2) http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5 (I can not submit more
I am trying an example from http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml in the example the BufferReader is not
I read the documentation @ http://www.sqlite.org/lang_select.html , but could not understand if LIMIT works
If you select a paragraph from eg http://www.wired.com/gadgetlab/2010/01/ipad-flash/ and paste it in word, you

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.