I have default pop-up screens with the names: Default-568h@2x.png , Default-Portrait.png, Default.png, Default@2x.png , etc. For all types of devices.
I know that the system automatically selects the appropriate splash screen for a specific device and displays it.
Questions: is it possible to find out which image is selected by the system? How to load the corresponding image selected by the system in UIimageView.
I tried this:
UIImageView *splashView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, screenWidth, screenHeight)]; splashView.image=[UIImage imageNamed:@"Default.png"];
But it only downloads an image named Default.png for all types of devices (iPhone 4, 5, iPad).
Do I need to manage this manually? I want to download the corresponding image after identifying the device type?
source share