0

I'm trying to get screen size and get like following.

CGRect deviceSize = [UIScreen mainScreen].bounds;

But when device is rotated (from upside to left), deviceSize's size value is not changed.

How to get changed screen size when rotated?

Is there a supported API or make manually?

S.J. Lim
  • 3,095
  • 3
  • 37
  • 55
  • check out http://stackoverflow.com/questions/6628273/execute-method-when-iphone-enters-landscape-mode – atnatn Sep 21 '12 at 17:28
  • 1
    http://stackoverflow.com/questions/2686882/incorrect-frame-window-size-after-re-orientation-in-iphone might be helpful to you... – Jim Sep 21 '12 at 17:30
  • Thanks Jim. It is what I have wanted. :D – S.J. Lim Sep 21 '12 at 18:17

0 Answers0