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

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-25
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-08-15
相关资源
相似解决方案