2011-09-07 45 views

回答

-1

像這一點,但隨後門的UITextView我猜:

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

但標籤將不會像UITextView工作我認爲 – Mashhadi

+0

問題是關於UITextView不UILabel。 UITextView沒有像numberOfLines這樣的想法。 –

+0

這顯然是錯誤的。 – FreeAsInBeer