UITextView *textView=[[UITextView alloc]initWithFrame:CGRectMake(20, 40, 150, 170)];//初始化并设置大小

    textView.text= [ModelDataAll dataDetailFromModel:poet_list andDataNum:a andNSString:xiao_zhuan];///从宏定义中摘取所需要的数据

    textView.backgroundColor=[UIColor colorWithRed:1 green:1 blue:1 alpha:0];//只要alpha=0,前面的浮点数不管是1还是什么。都将变得透明不显示颜色,字体照样现实的

    textView.font=[UIFont systemFontOfSize:12];//设置字体大小

    textView.textAlignment=NSTextAlignmentLeft;///设置字体位置偏左

    [rightView addSubview:textView];

 

相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-04-20
  • 2021-11-27
  • 2021-08-01
相关资源
相似解决方案