我有几天这个和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;