Here is my code to get main screen size
[[UIScreen mainScreen] bounds].size;
And in ios5 and ios6 it's return 480 of height,but when I run it in retina 4 inch simulator
,it still return 480 of height.
Anyone know how to solve this problem?
Many thanks.
Just add a new default png photo with 1136 height.
[[UIScreen mainScreen] bounds].size will return new height of 4-inch screen.
You have to add the iPhone 5 Launch image ([email protected]) to your project.
The 568 point tall launch image tells iOS to launch your app in 4" mode. If you don't have this image, your app is treated as a 3.5" app. Even if it is 4" compatible.
GO to Target -> General -> Launch Images -> (Select) LaunchImages
Clear your App and Run it.
if you have splash screen select those on Launch Images.
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