I have develop one universal app. I have four type images
- iphone - simple.png
- iphone retina - [email protected]
- ipad - [email protected]
- ipad retina - simple@[email protected]
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.