I'm working on the new app with Xcode 4.5 and going to use deployment target to iOS 4.3. App should be support iphone 5 & iPhone 4. I googled for design the iPhone 5 & iPhone 4 and saw following url.
iOS 6 apps - how to deal with iPhone 5 screen size?
We can use autoresizingmask for iPhone 5 & iPhone 4 design. I did some screen design for iPhone 5 & iPhone 4. But, i have a doubt. autoresizingmask is to be used for iPhone5 also? I have used iPhone 4 only. Need to verify the following code. Pls help for me.
if ([[UIScreen mainScreen] bounds].size.height < 568) {
topView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleLeftMargin |
UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleWidth |
UIViewAutoresizingFlexibleHeight ;
}
The above code is right? or autoresizing should be use iPhone 5 also?