How to restrict UITextView in 2 lines? [duplicate]
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;
精彩评论