How to prevent an application from blocking the status bar in ios-11, iPhone-X, Xcode-9

I want to stop overlapping my view with the status bar

enter image description here

+3
iphone ios11 xcode9
source share
1 answer

Use the automatic layout and link your presentation to the top layout guide or use the new safe zone planning guides. To enable it, in your storyboard the file inspector will check the following option.

enter image description here

As an example, I used an image with a gray image:

enter image description here

As you can see below, it does not overlap the status bar:

enter image description here

+5
source share

All Articles