问题描述:

I have embedded a Stack View in a Scroll View. I am struggling to align the tops of two objects (UI displayed below).

You will notice that I have added the constraint

Stack View.top = top

However for some reason there is still a spacer between the top of the Scroll View and the top of the Stack View. I assume that I have set the constraints incorrectly.

Any idea how to remove this?

相关阅读:
Top