ScrollView adds space at the top of subview xcode 6 Swift

I am trying to build a scene using the story panel. In this case, I have a scrollView that has the following limitations.

Scrollview constraints

Inside the scroll view, I have a simple view that has the following limitations.

View constraints

Now, inside the view, I have several labels and other objects. For the first shortcut, I have the top space from the view as 0. But the following result appears.

enter image description here

You may notice a space above the Type label.

Please help me with this. Thanks.

+1
source share
1 answer

Select ViewControler (RED)

select ViewControler (RED)

Activate selection attribute and uncheck "Customize scroll"

enter image description here

+9
source

Source: https://habr.com/ru/post/979884/


All Articles