xcode shows same height for 3.5 inch and 4 inch screen in ios
ios, iphone, objective-c, xcode
Solution
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");
}
Problem
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..