ios
来源:互联网 发布:咫尺网络微页电话 编辑:程序博客网 时间:2024/06/05 20:15
- (void)viewDidLoad {NSRange range = [orderPriceLabel.text rangeOfString:@"付款金额:"]; [self setTextColor:orderPriceLabel FontNumber:_kFontMain AndRange:range AndColor:kColor262626]; }//设置不同字体颜色-(void)setTextColor:(UILabel *)label FontNumber:(id)font AndRange:(NSRange)range AndColor:(UIColor *)vaColor{ NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:label.text]; //设置字号 [str addAttribute:NSFontAttributeName value:font range:range]; //设置文字颜色 [str addAttribute:NSForegroundColorAttributeName value:vaColor range:range]; label.attributedText = str;}
阅读全文
0 0
- iOS
- iOS
- IOS
- iOS
- iOS
- IOS
- ios
- iOS
- iOS
- IOS
- iOS
- ios
- ios ~~~~~
- ios
- IOS
- IOS
- IOS
- ios
- Android Studio --MasterPassword
- windows、ubuntu系统程序运行查看显存方法
- python学习笔记——类和对象
- keras加载MNIST数据集方法
- 陈纪修老师《数学分析》 第08章:反常积分 笔记
- ios
- 提升能力的几条建议
- RANSAC算法详解
- 1、PHP基本数据类型
- Linux基础四
- 请求服务系统&资源服务总线,你知道它们的区别吗?
- 会话式设计正在走俏
- 三星Samsung 笔记本 改WIN7 BIOS 设置详解
- Linux内存管理