UITextView

1、使用UITextView 让字符串自动换行(字符串中包含\r\n)

            UITextView *uitv_remark = [[UITextView alloc]initWithFrame:CGRectMake(10, 48, 220, 420)];

            uitv_remark.text = [[NSString alloc]initWithFormat:[member objectForKey:@"description"]];

            [uitv_remark setFont:[UIFont systemFontOfSize:15]];

            [view addSubview:uitv_remark];

            [uitv_remark release];

 

 

你可能感兴趣的:(UITextView)