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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:36:18+00:00 2026-06-12T19:36:18+00:00

[self.distanceSlider setThumbImage:[UIImage imageNamed:@handle-slider] forState:UIControlStateNormal]; Let’s take a look at that code. If I use

  • 0
[self.distanceSlider setThumbImage:[UIImage imageNamed:@"handle-slider"] forState:UIControlStateNormal];

Let’s take a look at that code.

If I use retina display, will the image called be handle-slider@2x instead of handle-slider?

Notice that this could raise an issue. Imagined if I load an image for the sole purpose of processing it and I really really want to load handle-slider, or handle-slider@2x? Then having iOS to override my decision and arbitrarily load @2x image will be kind of silly.

On the other hand most of the time, I used UIImage imageNamed to populate a button. In that case, it makes perfect sense to add @2x.

In any case, which path does apple eventually use and if possible, what’s the reference?

I searched stackOverflow.

Most answers are inconsistent with one suggesting one or the other.

  • 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-12T19:36:19+00:00Added an answer on June 12, 2026 at 7:36 pm

    The documentation for [UIImage imageNamed:] has exactly the information you want to know.

    This method looks in the system caches for an image object with the
    specified name and returns that object if it exists. If a matching
    image object is not already in the cache, this method loads the image
    data from the specified file, caches it, and then returns the
    resulting object.

    On a device running iOS 4 or later, the behavior is identical if the
    device’s screen has a scale of 1.0. If the screen has a scale of 2.0,
    this method first searches for an image file with the same filename
    with an @2x suffix appended to it. For example, if the file’s name is
    button, it first searches for button@2x. If it finds a 2x, it loads
    that image and sets the scale property of the returned UIImage object
    to 2.0. Otherwise, it loads the unmodified filename and sets the scale
    property to 1.0.

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

Sidebar

Related Questions

[self performSelector:@selector(stopPulling) withObject:nil afterDelay:0.01]; The code is fine. I just think that using NSOperation
[self.scrollView addSubview:[self.minkyImageView initWithImage:[UIImage imageNamed:@monkey_1.png]]]; I am adding an image to a scrollview like the
Pretty self explanatory. I have a textbox in an updatepanel that will autopostback when
Pretty self explanatory code. Why doesn't it work! #include <stdio.h> int main() { __asm__(number
return self.var[:] What will that return?
After self.currentProperty = [NSMutableString string] I saw invalid expression on that thing on the
(define self-add (let ((x 0)) (lambda () (set! x (+ x 1)) x))) (self-add)
Pretty self explanatory, I have a string that is HTML, how do i draw
self.scrollView.frame=CGRectMake(CGRectGetMinX(self.bounds),CGRectGetMaxY(self.bounds),CGRectGetWidth(self.bounds),CGRectGetHeight(self.bounds)); [self.scrollView addSubview:self.hourView]; [self.scrollView addSubview:self.gridView]; Now after embedding some views in the gridview, I
[[self enclosingScrollView] setHorizontalLineScroll:0]; the above api doesnt works. Help Appreciated...

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.