Reputation: 455
I have a an app running on Iphone 5 and all the elements fit perfectly, I want to run the app also on Iphone 3 and Iphone 4.
I read a few articles about the Auto Sizing but I could not find any information specific for this issue.
Do I need to have a multiple Images with different sizes? Do I need to set the elements size grammatically ?
Any help guys....
Thanks.
Upvotes: 1
Views: 1149
Reputation: 1170
If your application is thought for iPhone 5, it will be complicated due to the smaller screen size, but here is what you have to do :
Upvotes: 1
Reputation: 228
-(void)viewWillAppear:(BOOL)animated { if ([[UIScreen mainScreen] bounds].size.height == 568) { [splashImage setFrame:CGRectMake(0, 0, 320, 548)]; [splashImage setImage:[UIImage imageNamed:@"[email protected]"]]; } else { [splashImage setFrame:CGRectMake(0, 0, 320, 460)]; [splashImage setImage:[UIImage imageNamed:@"splash_Image_320X.jpg"]]; } }
Upvotes: 0