Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone 5 reporting incorrect screen height

Tags:

iphone

I am testing my application on iPhone 5 and its reporting screen height as 480 on the iPhone 5. In iPhone 5 simulator I get correct height i.e. 568, but the same code is reporting 480 on hardware. I am using following code to get the screen height.

[UIScreen mainScreen].bounds.size.height]

What could be the reason?

Thanks

like image 267
dev Avatar asked Jan 19 '26 12:01

dev


1 Answers

Support for the taller screen of the iPhone 5 and 5th gen iPod touch requires the existence of the [email protected] launch image. The simulator is case insensitive while a real device is case sensitive for filenames.

Since the simulator is reporting the taller height while the device isn't, perhaps you have the launch image with the wrong filename. Make sure it is really [email protected] and not something else like [email protected] or [email protected].

like image 80
rmaddy Avatar answered Jan 21 '26 01:01

rmaddy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!