resize - How do i make an app running on iphone 5 fit the screen of iphone 4 and 3 -
i have app running on iphone 5 , elements fit perfectly, want run app on iphone 3 , iphone 4.
i read few articles auto sizing not find information specific issue.
do need have multiple images different sizes? need set elements size grammatically ?
any guys....
thanks.
- you need have multiple images different sizes.
- you need set elements size programmatic ally in viewwillapear method.
-(void)viewwillappear:(bool)animated { if ([[uiscreen mainscreen] bounds].size.height == 568) { [splashimage setframe:cgrectmake(0, 0, 320, 548)]; [splashimage setimage:[uiimage imagenamed:@"splash_image_320x568@2x.jpg"]]; } else { [splashimage setframe:cgrectmake(0, 0, 320, 460)]; [splashimage setimage:[uiimage imagenamed:@"splash_image_320x.jpg"]]; } }
Comments
Post a Comment