I am working on ios 7 & ios 6 3.5 inches and 4 inches screen for ios. I am working on a splash screen for both versions. In ios 7 4-inches screen it display the proper way. In iOS 6 with a 4-inch screen it is not display properly. I have issues with alignment. iOS 7 with 3.5 inches is also getting some alignment issues. But iOS 6 with 3.5 inches it displays find. I dont know how to fix the alignment issues. This is my sample code:
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
{
splashView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 20, 320, 548)];
splashView.image=[UIImage imageNamed:@"screens copy.png"];
[self.view addSubview:splashView];
splashView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleTopMargin;
}
else
{
splashView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
splashView.image=[UIImage imageNamed:@"small-screen1.PNG"];
[self.view addSubview:splashView];
splashView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleTopMargin;
}
Launch Images
.This is for Splash Screen functionality.