UITextView just horizontal scrolling help

后端 未结 4 1200
遇见更好的自我
遇见更好的自我 2021-01-14 08:13

I have a UITextView , i want show its\' text in horizontal, my UITextView has a static width

[[UITextView alloc] initWithFrame:CGRectMake(0, 0, 161, 23)];
<         


        
4条回答
  •  没有蜡笔的小新
    2021-01-14 08:46

    mscrollview.contentSize = CGSizeMake(180,30);
    mscrollview.showsHorizontalScrollIndicator = YES;

    Use this 2 lines.

提交回复
热议问题