将我的textview调整为NSString的内容并将其添加到scrollview

时间:2013-12-31 14:18:17

标签: objective-c ios7 uiscrollview textview

我有几天这个和zilch已经尝试了所有的东西,试图做任何内容和反应,因为我现在没有剪切线和空格的代码。

这是我的代码:

UITextView *textArea=[[UITextView alloc]initWithFrame:CGRectMake(10, 30, 220, 300)];
textArea.backgroundColor=[UIColor clearColor];


[textArea setText:_descripcion];
textArea.editable=NO;
textArea.scrollEnabled=NO;


[self.elscroll addSubview:textArea];

 CGRect frame = textArea.frame;
 frame.size.height = textArea.contentSize.height;
 textArea.frame = frame;

0 个答案:

没有答案