NSMutableAttributedString
来源:互联网 发布:淘宝排名靠前技巧2016 编辑:程序博客网 时间:2024/04/24 18:11
+(NSMutableAttributedString *)mutableString:(NSString *)objString{
NSString *string =[NSStringstringWithFormat:@"所在温区 %@",objString];
NSMutableAttributedString *attributedString = [[NSMutableAttributedStringalloc] initWithString:string];
// 设置富文本样式
[attributedString addAttribute:NSForegroundColorAttributeName
value:RGBBLUE
range:NSMakeRange(4, string.length)];
[attributedString addAttribute:NSFontAttributeName
value:YAHEI(18)
range:NSMakeRange(0,4)];
[attributedString addAttribute:NSFontAttributeName
value:YAHEI(18)
range:NSMakeRange(5, string.length)];
return attributedString;
}
NSMutableAttributedString 的具体使用方法,设置label 用过label的AttributedString 来设置
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString 使用
- NSMutableAttributedString使用
- NSMutableAttributedString 文字处理 。。。
- NSMutableAttributedString使用
- NSMutableAttributedString初探
- NSMutableAttributedString mode
- javascript函数式编程要掌握的知识点讲解
- 伽玛分布噪声图像
- matplot同时画两条线,代码示例
- YYKit系列之——YYModel使用(摘自GitHub)
- 关于在IOS开发中数据懒加载相关
- NSMutableAttributedString
- 高斯(正态)噪声图像
- Linux下启动和关闭mysql服务
- “Netout :对方将连接复位”
- :hover 选择器
- poj1860 货币转换 spfa+Bellman-Ford
- oc内存管理小结
- caffe+windows7+vs2013配置
- Atitit.web的自动化操作与信息抓取 attilax总结