Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch Screen storyboard clipped by "In-Call" status bar

I have a simple launch screen storyboard. It's a UINavigationController with a UITableViewController as its root. It simply shows the correct UITitleBar for the application.

When I launch with the larger in-call style status bar, the launch screen's title bar is clipped behind the status bar. After launch, the App correctly sizes so that the title isn't clipped – I.E. there is no problem with the run time storyboard.

Clipped lunch screen

Can I fix this launch clipping?

Something I notice is that the launch screen storyboard does not seem to provide top and bottom layout guides. I'm not sure is this is relevant.

Here's a screen shot of the launch screen storyboard:

launch screen storyboard.

As a note, it doesn't have any vertical layout constraints to attach to, and I don't seem to be able to create any constraints using interface builders tools for this.

like image 887
Benjohn Avatar asked Sep 29 '15 11:09

Benjohn


1 Answers

I think I've figured out a solution.

Here's my Storyboard with constraints:

Storyboard

Basically, you don't have any constraints set for the Table View. First, you should turn off freeform by going to Size Inspector -> Fixed.

Then click on your Table View, and press the "square with lines" constraint button and set it to this:

Constraints

I believe the reason it wasn't working was that you had freeform on without setting constraints on it- but there isn't a need for you to be using freeform.

This is what I could gather from the information you supplied, so if this doesn't fix it then you can take a look at this sample here.

like image 143
Charles Truluck Avatar answered Sep 21 '22 11:09

Charles Truluck