zoukankan      html  css  js  c++  java
  • 2016-02-24 富文本

    cellhelp.backgroundColor=RGB(232, 231,231);

                UILabel *show=[[UILabel alloc]initWithFrame:CGRectMake(15, 10, SCREEN_WIDTH-30, 20)];

                show.font=SYSTEMFONT(14);

                

                NSMutableAttributedString *strnn = [[NSMutableAttributedString alloc] initWithString:@"要开启或关闭,您可以通过iPhone的设置-通知-肝胆相照 允许通知 手动设置"];

                

    //           [strnn addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(30,4)]; //设置字体颜色

                //[UIFont boldSystemFontOfSize:20];  [UIFont fontWithName:@"Arial" size:20.0]

               [strnn addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:14] range:NSMakeRange(30, 4)]; //设置字体字号和字体类别

                

                

                //要开启或关闭,您可以通过iPhone的设-通知-肝胆相照 允许通知(加粗)  手动设置

                show.attributedText=strnn;

                show.numberOfLines=0;

                show.lineBreakMode=NSLineBreakByWordWrapping;

                [show sizeToFit];

                [cellhelp.contentView addSubview:show];

  • 相关阅读:
    【MySQL】自增步长调整
    【Python】异常
    【Python】单例模式
    rabbitMQ-server 下载地址
    函数(六)---内置函数
    # python04---函数
    python02---基础数据类型
    0001-代码仓库-git 命令
    0001-代码仓库-mvn
    腾讯短信接口使用
  • 原文地址:https://www.cnblogs.com/gzz2016/p/5212701.html
Copyright © 2011-2022 走看看