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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:52:43+00:00 2026-05-24T15:52:43+00:00

I have 3 short questions, very related: How do i detect if the user

  • 0

I have 3 short questions, very related:

  1. How do i detect if the user is using a retina device?

  2. I want to save an image inside my app in documents, if i detect that they’re using a retina display phone and save the image ending in @2x.jpg will it work as it does with imported images, where it’ll automatically go for that one instead on a retina device?

  3. If i were to reference an image which didn’t exist, but a @2x.jpg version existed, would it go to that by default?

  • 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-24T15:52:43+00:00Added an answer on May 24, 2026 at 3:52 pm
    1. Use [UIScreen mainScreen].scale, it’s 2.f when it’s a retina screen.
    2. I’m not sure, but I think it’ll automatically detect @2x-versions here too (as long as you use UIImage to load them).
    3. If it’s a retina screen, it’ll look to the @2x-version first, if it doesn’t exist, it’ll fallback to the default-version. If that version doesn’t exist, it’ll return nil. A non retina screen however, will never look to the @2x-version.

    You call it a x2.jpg-file, however, it isn’t:

    • Your default file is something like background.png.
    • Then your retina file should be like background@2x.png.
    • You load the image using UIImage *image = [UIImage imageNamed:@"background.png"];.
    • In most situations you don’t need to know if it’s a retina screen, iOS will handle this.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two questions in one, but I have a very short test case demonstrating my
I have a very short question: How can i fetch mysql content using php
I have a very short and straight to the point question. When adding an
I have a short question. Im my current project I'm using LINQ-to-SQl. That is
I have a short question. I want do put this \tssr>&\8=f23' into a String
I am writing an app that’s a very simple web service client. I have
I have a very strange array sorting related problem in PHP that is driving
I have a java threads related question. To take a very simple example, lets
I have a short question i have wrote this in java. Old code: class
I have a short question, let's assume I have a TabBarController with 3 Tabs

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.