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];

 

 

posted @ 2013-02-01 10:03  ygm900  阅读(218)  评论(0编辑  收藏  举报