0

How to avoid the 20 margin, when I set the constraint to 0?

You can see the below image, which have 20 more margin here, how to avoid that?

enter image description here

Md. Ibrahim Hassan
  • 5,359
  • 1
  • 25
  • 45
s-n-2
  • 405
  • 1
  • 6
  • 24
  • 1
    click on the little arrow.... select the option that doesn't say top layout constraint or something like that. – Pochi Apr 20 '17 at 08:58

3 Answers3

1

Override this method to hide status bar in your UIViewController

override var prefersStatusBarHidden: Bool {
    return true
}

In Storyboard, set Status Bar: None in the Attributes Inspector.

Attributes Inspector

lubilis
  • 3,942
  • 4
  • 31
  • 54
0

Try this solution :

Its solve your problem through constrains

https://stackoverflow.com/a/37438583/3901620

Community
  • 1
  • 1
KKRocks
  • 8,222
  • 1
  • 18
  • 84
0

You can drag the launch image upper over than the status bar, then set the constraints.

enter image description here

aircraft
  • 25,146
  • 28
  • 91
  • 166