Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad Retina Display Suffix

Tags:

I'm looking to put iPad retina (crazy!) quality images into my app for the 'New iPad's launch on the 16th Martch. However I can't find the correct suffix for my file names anywhere in the documents!

I use @2x suffix for iPhone and iPod retina display. If anyone else knows what it is/will be for the iPad and, even more, can show me a link to the official documents on this I'd really appreciate it.

Thanks! :-D

EXTRA:

Thought I'd just leave a bit of code I've started using to use my iPhone @2x images for the iPad non-retina ones (as most of my @2x~iphone and ~ipad images were the same and duplicates are just a waste of space).

+ (UIImage*)imageNamedSmart:(NSString*)name {     UIImage *returnImage = [UIImage imageNamed:[NSString stringWithFormat:@"%@", name]];      if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)     {         if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2)         {             // iPad Scale 2  i.e. 3rd Gen iPad         }         else         {             // iPad Scale 1  i.e. 1st and 2nd Gen iPad             return [UIImage imageNamed:[NSString stringWithFormat:@"%@@2x", name]];         }     }     return returnImage;  } 

This means instead of calling:
[UIImage imageNamed:@"imageName"]

You call:
[self imageNamedSmart:@"imageName"]

Hope this help people a bit more. :-D

(I found this idea by goggling but I can't find the original site to link, so thank you whoever you were.)

like image 736
Baza207 Avatar asked Mar 10 '12 21:03

Baza207


People also ask

What is Apple iPad Retina display?

Retina - A display with a pixel density such that the naked eye cannot discern individual pixels on an iPad screen from a distance of 15 inches. Most Retina screens found on iPads have a pixel density of 264 ppi, while the iPad Mini's Retina display is higher at 326 ppi.

Which iPad has the first Retina display?

"The new iPad" & iPad mini2012's third-generation iPad built on this foundation with the dual-core A5X processor, quad-core graphics, and the first-ever Retina display on an iPad, pushing resolution to 2,048 by 1,536.

What is the latest iOS for iPad 3?

iOS 9.3. 5 is the latest and final version to support the Wi-Fi only iPad 3rd generation model while the Wi-Fi + Cellular models run iOS 9.3. 6.

When did iPads get Retina display?

March 16, 2012: Apple introduces the third-generation iPad, its first tablet to come with a Retina display.


1 Answers

You will have to append @2x~ipad to the name of your image in order to support retina graphics.

like image 105
thvanarkel Avatar answered Oct 07 '22 07:10

thvanarkel