I'm trying to wrap my head around how UIScrollViews
work and while there are already some pretty good answers, they don't seem to cover UITextViews
, so I was wondering if anyone could tell me more about what UITextViews require to work in a UIScrollView. My setup looks like the image below and I'm getting errors that the ScrollView has no height or width constraints.
If you could, I'd appreciate it if you could elaborate a little on why this doesn't work and what requirements TextViews have when placed inside ScrollViews.
"Scrolling Enabled"
checkmark from UITextView in Attributes Inspector – Andrew