How to use scroll view on iPhone?

后端 未结 4 497
小蘑菇
小蘑菇 2021-01-12 01:19

I want to display a text with a lot of lines. I added a multiline-label to a scroll view, but it didn\'t show anything. Looks like this is not the correct way to use the scr

4条回答
  •  死守一世寂寞
    2021-01-12 01:55

    You can just use a UITextView. It's a child of UIScrollView, and if you set it's text property to an amount of text that does not fit within it's frame, the view will become scrollable.

提交回复
热议问题