UITextView wraps text when built with iOS 7 SDK

后端 未结 4 670
北恋
北恋 2021-02-03 11:49

I have a UITextView inside a UIScrollView that worked perfectly fine on iOS 6 built from xcode 4.x, however now building with

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 12:22

    for response to "Thanks, but this doesn't seem to address my issue. I am using both flexible width and height. It seems like i'm getting the correct dimensions returned as the textview scrolls enough in both directions, however the text itself is still being wordwrapped."

    I fixed this by [textView sizeToFit];

提交回复
热议问题