I would display a view in my iOS app, but when I try to use ScrollView, even if I put stack views, it doesn't work.
Here is a screenshot of my storyboard:
I do tests with a long description I put in my code, but the scroll view doesn't work properly. Here are the constraints of my View Controller:
Where the problem could come from?
EDIT:
After deleting the View.centerY = centerY
, I get this error:
Scroll View: Need constraints for: Y position or height
Here is my new constraints:
Constraint View.centerY = centerY
between the content view and the scrollView
will prevent scrolling. Drop that constraint.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.