I test my app in 3.5 inch and 4 inch. While I NSLog(@"%@", self.view.frame.size.height);
both 3.5 inch and 4 inch shows height 568. Now currently I m using xcode 5.. Any can please explain why this shows like that..
I think you are using self.view.frame.size.height . In this condition app using your original view means your xib's height and may be your xib is 4 inch.
If you want to check UIDevice height than use this condition
if ([UIScreen mainScreen].bounds.size.height<568)
{
NSLog(@"3.5 inch screen");
}
else
{
NSLog(@"4.0 inch screen");
}
You should have two launch images- one Default.png (for 3.5 inch) and another Default-568h.png (for 4 inch) in your app. Please check it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With