0

I just ran a demo app on iOS 7 target, this is what I get:

enter image description here

I'm using a storyboard and it looks well in iOS8. Constraints are correct.

I already checked e.g. UITableView is starting with an offset in iOS 7

but the issue in this case is the whole thing, incl. status bar has the offset, no idea what this is. I played around with the layout settings of the view controller in the storyboard without any effect.

I also created a brand new (single view) project, ran it without changing anything, got the same issue. Don't know what can go wrong in a new project concerning autolayout as I can't set any constraints in the root view controller's view...

Any ideas?

Thanks in advance.

Community
  • 1
  • 1
User
  • 31,811
  • 40
  • 131
  • 232

1 Answers1

3

Try adding a "Default-568h@2x.png" launch screen to keep your iOS 7 device from running the app in Letterbox mode.

What Apple really wants you to do is use Auto-layout (see point 1 in the linked blog), which is what I suspect your demo app isn't doing.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • I'm using autolayout... set constraints for everything... it works correctly in iOS8. – User Dec 07 '14 at 14:04
  • I just created a new single view project with the latest version of XCode (6.1), didn't do anything, ran it in 7.1 Simulator and got the same issue. There doesn't seem to be anything I can do with autolayout, as there's only the root viewcontroller's view and I can't set constraints. – User Dec 07 '14 at 14:19
  • Well, the splash image helps. Weird fix though. – User Dec 07 '14 at 14:40