0
votes

I have develop one universal app. I have four type images

When i try to run the application, it works fine into ipad (non retina) but it gives black screen (no images) into ipad retina.

Here, put code of function which give me related name for iphone & ipad.

#define SHImageString(str, ext) ({ UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? ([NSString stringWithFormat:@"%@.%@", (str), (ext)]) : ([NSString stringWithFormat:@"%@@3x.%@", (str), (ext)]); })

Thanks in advance.

1
Really confusing naming scheme if you ask me...jimpic
Can you tell me why it can't display retina images.Play cool
try different names, leave out the "@3" maybe that's what's confusing the selection of the right image file.jimpic
Before it, i have used simple_ipad.png and [email protected], but it didn't workPlay cool

1 Answers

1
votes

It should be like this:

In your code (or XIB) you only use the files without the @2x. If the app is run on a retina display it will automatically use the @2x version. I've used this many many time, works perfect.