I have a UILabel
inside a UIScrollView
that I am trying to word wrap. I want to use AutoLayout for the layout configuration. The UILabel
word wraps perfectly when it is not inside a UIScrollView
. I just have to set the number of lines to 0 and set the line break mode to word wrap.
However, when I put the UILabel
inside a UIScrollView
, the word wrapping ceases to work. I have already checked "Dynamic UILabel height inside UIScrollView with AutoLayout" and "Correctly Size UILabel inside UIScrollView using Interface Builder and Autolayout?", but neither of those questions have answers that help me.
I have set up a test project illustrating exactly what I am talking about if someone wants to have a look at it.