Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Nice solution, but be careful that temp seems to have undefined origin. Commented Jul 22, 2012 at 13:17
  • 4
    Do you get 0,0 as default? When I logged the fullScreenRect, it gave me: {{8.03294e-35, 3.09816e-40}, {480, 320}}. I chose to initialized with CGRect temp = CGRectZero; Commented Jul 22, 2012 at 14:40
  • 1
    UIInterfaceOrientationIsLandscape does not handle 'UIDeviceOrientationFaceUp' and 'UIDeviceOrientationFaceDown' which may be returned from UIDevice. Commented Aug 13, 2012 at 14:53
  • 6
    You may like to use the property screen.applicationFrame instead of screen.bounds which takes care of the status bar. Commented Oct 9, 2012 at 11:50
  • Turns out in some cases applicationFrame dosn't return frame with a correctly subtracted status bar (full screen modals from a splitview) Commented Jan 13, 2013 at 16:32