UI基础__ NSMutableAttributedString
2015-11-17 22:26
375 查看
NSRange
titleRange = [commentStr rangeOfString:title];
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:commentStr]; [attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor
grayColor] range:titleRange];
titleRange = [commentStr rangeOfString:title];
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:commentStr]; [attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor
grayColor] range:titleRange];
相关文章推荐
- iOS - UIButton(UIEdgeInsets)/设置button上的文字和图片上下垂直居中对齐
- Swift之贪婪的UIButton
- UIButton拖动响应事件,距离问题
- IOS 7.1 兼容性bug 问题,UIButton,UILabel ...
- UIButton小结
- [Swift]UIKit学习之UIButton的用法
- UIButton的使用
- 第一个IOS程序(代码版)
- IOS 简易图片浏览器
- iOS 短信验证码
- IOS 设置 navigationItem.rightBarButtonItem leftBarButtonItem 字体按钮
- 发散按钮浅谈
- iOS中UIButton的block
- UIButton之ImageEdge&TitleEdge笔记
- ios button长按事件
- 重写UIButton属性
- 【学习中的分享】 iOS利用UILabel和UIButton制作一个简单的计算器
- ios UIbutton变圆
- Learning the 02 day for ios
- 6.23