1

I am tring to get the iphone 6 screen bounds but it give me the iphone 5 frame

 NSLog(@"%@",NSStringFromCGRect([UIScreen mainScreen].bounds))
 {{0, 0}, {568, 320}}
Omar Freewan
  • 2,678
  • 4
  • 25
  • 49

1 Answers1

-1

I think you have to use [UIScreen mainScreen].nativeBounds introduced in ios8.

Luca T.
  • 1,641
  • 1
  • 14
  • 18
  • Nope, that’s for things like games that can benefit from rendering at the screen’s native resolution rather than the higher-resolution-then-downscaled thing the iPhone 6 Plus does. – Noah Witherspoon Sep 13 '14 at 18:28