0

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 !

Community
  • 1
  • 1
Mashhadi
  • 3,004
  • 3
  • 46
  • 80

1 Answers1

-1

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;
Wesley
  • 2,190
  • 17
  • 26