简体   繁体   中英

ScrollView doesn't work properly in Xcode

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM