0

I just started testing my app on an iPad 2 thats still running iOS 7, because thats what I had lying around. As soon as I open up the app, the main view under the UINavigationController is offset and too small. Heres a picture of what I'm talking about: enter image description here

The whole screen should be the light color. I use [UIScreen mainScreen].bounds to make the lighter view. I'm compiling this on the iOS 8.2 SDK. After logging the width and height, it seems like they're inverted. Is that how iOS 7 handles things? I think just checking if its running iOS 7 and swapping them will work, but I want to make sure this is the problem. Thanks.

EDIT: Swapping them worked, but when I go to another view, that view is also rotated, and those are normal views.

BlueSpud
  • 1,555
  • 3
  • 19
  • 44

1 Answers1

2

iOS8 bounds are relative to orientation thus a device in landscape will have different bounds from the same one on portrait , in iOS7 this does not happen, the bounds are the same no matter if you are in portrait or landscape

See this answer

Community
  • 1
  • 1
Benjamin Jimenez
  • 984
  • 12
  • 26