开发者

How to restrict UITextView in 2 lines? [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜