UILable

作者: 纯阳子_ | 来源:发表于2016-09-01 21:55 被阅读18次

/显示下划线

//中划线

//        NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber    numberWithInteger:NSUnderlineStyleSingle]};

//下划线

     NSDictionary*attribtDic =@{NSUnderlineStyleAttributeName:        [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};

 NSMutableAttributedString*attribtStr = [[NSMutableAttributedString alloc]initWithString:old Strattributes:attribtDic];

oldPriceLabel.attributedText= attribtStr;

UILable 设置左右边距之后显示不完整.设置属性

[self.placeLabel sizeToFit];

self.placeLabel.adjustsFontSizeToFitWidth =YES;

相关文章

  • iOS 小知识

    UILabel 通过文字计算宽高 UILable *lable=[UILable alloc]init]; lab...

  • iOS加载Html文本

    UILable||UITextView加载html 使用UILable或TextView比较方便,但是字体样式无法...

  • iOS开发初级(一、基础002)

    UILable、UIImageView、UIButton的拓展:三个控件,当显示文字时,使用UILable,当显示...

  • UILabel顶格显示

    UILable的Category

  • UILable

    UILable是UIKit下的控件,继承UIView,是iOS开发常用的控件。 项目中一般的用法: 多行显示 如果...

  • UILable

    UILable 是一个只读的文本视图,使用这个类绘制单行或者多行的静态文本。你可以将 UILable 作为你界面的...

  • UILable

    /显示下划线 //中划线 // NSDictionary *attribtDic = @{NSStriket...

  • UILable

    UILable summary UILabel的常见属性 UIFont类 Method Demo

  • UILable

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen ...

  • IOS开发 UILabel标签控件

    本节学习内容: 1.UILable的概念 2.UILabel的基本属性 3.UILable的高级属性 [项目名称:...

网友评论

      本文标题:UILable

      本文链接:https://www.haomeiwen.com/subject/deysdttx.html