0

I am trying to load a custom image if the device is iPhone 5. In my Simulator I selected hardware->Device->Retina 4 inch. Now with the code below

[UIScreen mainScreen].bounds.size.height * [[UIScreen mainScreen] scale]

I expected to see the value of 1136 here. But it gives 960.

What is going wrong here ?

user1191140
  • 1,559
  • 3
  • 18
  • 37
  • 2
    Do you have a -568h launch image? That's the trigger used to determine whether to run full screen. – Tommy Sep 19 '12 at 05:46
  • Thanks that helped. Is there an official documentation from Apple on this. – user1191140 Sep 19 '12 at 06:45
  • 1
    As it's iOS 6 launch day I believe I'm allowed to say: Xcode 4.5 should give you an explicit warning that the big launch image is required if you haven't supplied one. – Tommy Sep 19 '12 at 15:39

0 Answers0