I’m trying to display an Image in the Application method (not in the controller) didFinishLaunchingWithOptions (It’s actually a splash screen).
My code
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 640)];
splashView.image = [UIImage imageNamed:@"splashipad.jpg"];
} else {
//doesn't matter for now
}
Actually the image is displayed but it starts not from the up left corner. It’s displayed in portrait mode even though the emulator is in landscape mode.
Even if I invert the 1024 with the 640 it want solve the problem.
Wanna to display the splash always in landscape mode.
Try the following. The Width & Height might be around the wrong way so just switch them around