开发者

How to restrict UITextView in 2 lines? [duplicate]

开发者 https://www.devze.com 2023-04-03 18:09 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Limit the number of lines for UITextview
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Limit the number of lines for UITextview

Can any one guide me, how to restrict UITextView with only 2 lines? In my project I have to use textview but with only two lines and i don't know how开发者_高级运维 to do it. Please help !


Like this but then door UITextView i guess:

// Putting a small label with some basic information on screen
UILabel *infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 300, 800)];
infoLabel.numberOfLines = 2;
0

精彩评论

暂无评论...
验证码 换一张
取 消