0

I've no idea why is this happening. I already deleted the view controller and try new.. It's being the same. In following pic, the dark grey view's constraints are all zero.

enter image description here

When I run this.., it appears.

enter image description here

That ViewController is embedded in navigation controller which is connecting tab view controller.

Zin Win Htet
  • 2,448
  • 4
  • 32
  • 54

2 Answers2

2

Unselect Adjust scroll view Insets.

enter image description here

Also,try in option 'Extend Edges' and uncheck the 'Under Top Bars'

Daljeet
  • 1,573
  • 2
  • 20
  • 40
1

Just Set Constraints to 0 due to SafeArea, the IB automatically handle SubViews in your case i can see that is not to safeArea constraint safeArea is 20pt height only you can even drag the View manually to above the safeArea.

If you can't see SafeArea you can enable it by clicking on the UIViewController on the right menu top items click on show file inspector and this will show up just enable use Safe Area Layout Guides.

Read about safeArea Here

IB

Mohmmad S
  • 5,001
  • 4
  • 18
  • 50