0
NSLog(@"the View Weight is --%f--",self.view.frame.size.width);
NSLog(@"the View Height is --%f--",self.view.frame.size.height);

I ran the same code using iPhone 4S, 5 , 6, 6S

on iPhone 4S it gives 320,480

but for all other Devices its giving me 320 , 568 . No matter 5, 6, 6S

Is this Xcode 6.0 Bug?

Even NSLog(@"the height is -%f-",[[UIScreen mainScreen] bounds].size.height) gives m,e 568 on iPhone 6

Jasmeet
  • 1,522
  • 2
  • 22
  • 41

1 Answers1

1

Your app is not configured to run on the larger devices, so it is running in zoomed mode with a logical screen size the same as the iPhone 5.

You need to add a launch image xib to enable support for larger devices as discussed here

Community
  • 1
  • 1
jrturton
  • 118,105
  • 32
  • 252
  • 268
  • I am not getting you. every thing is perfect fine. what should I do? – Jasmeet Oct 08 '14 at 06:51
  • @jturton Cannot I add Splash screens in the Image Asscets Directly? – Jasmeet Oct 08 '14 at 07:25
  • I think so, don't the answers on the other question help you? – jrturton Oct 08 '14 at 11:42
  • Issue Resolved... Added the new splash screens via Image Asscets 1. 750 X 1334 2. 1242 X 2208 and Now its working fine... Thanks @jrturton nice solution, working...and ur stackoverflow reputation 63.9K OMG!! – Jasmeet Oct 08 '14 at 12:04