How to add a scroll function to a UILabel

前端 未结 2 1800
耶瑟儿~
耶瑟儿~ 2020-12-14 06:15

In Xcode, I created a UILabel which will autoresize depending on how many lines of text I put on it. But I don\'t want the UILabel\'s height to exceed a certain limit (240 i

2条回答
  •  一整个雨季
    2020-12-14 06:37

    Use UITextView (reference).

    It's designed to do exactly that. Disable editing, and you get a scrollable label.

提交回复
热议问题