From the official document :
UIView: Position with constraints.
UIScrollView: Bind to UIView with constraints.
UIDetailView: Set size (intrinsic content size), max out compression-resistance, set top-, bottom-, leading- and trailing constraints to UIScrollView to 0 manually.
Now let’s set up the outlet as the image.
Next, select Scroll View and in the option menu : Editor -> Resolve Auto Layout Issues -> Add Missing Constraints
Select View under Scroll View in the Size Inspector, make its height as your desire.
And select View and in the option menu : Editor -> Resolve Auto Layout Issues -> Add Missing Constraints
Now we do some changes.
1. add Width 320 ( Editor ->Pin -> Width)
2. delete Center X alignment
3. Open Vertical Space – (-480) – Scroll View – View in Attributes Inspector
Set Constant : zero
Now the outlet will look like..
Then your ScrollView can be scrolled !