ScrollView adds space at the top of subview xcode

2019-01-27 07:26发布

问题:

I'm trying to build a scene using story board. In that I've a scrollView, which has the following constraints.

Inside the scroll view I've a plain view, which has the following constraints.

Now inside the view I've several labels and other objects. For the first label I've a top Space from view as 0. But the following result appears.

You can notice the space above the label "Type".

Please help me with this. Thanks.

回答1:

Select ViewControler(RED)

Chose Attributes Inspector and uncheck Adjust Scroll View Insets