IOS系统原生富文本
来源:互联网 发布:画地图的软件 编辑:程序博客网 时间:2024/04/29 17:40
UILabel* lbl = [[UILabel alloc] init];NSString* str = [NSString stringWithFormat:@"%@ %@", repeat, item.remember];NSMutableAttributedString* aStr = [[NSMutableAttributedString alloc] initWithString:str];[aStr addAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont systemFontOfSize:14], NSFontAttributeName, [UIColor blackColor], NSForegroundColorAttributeName, nil] range:[str rangeOfString:repeat]]; [aStr addAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont systemFontOfSize:14], NSFontAttributeName, RGBCOLOR(188, 188, 188), NSForegroundColorAttributeName, nil] range:[str rangeOfString:item.remember]]; lbl.attributedText = aStr;
0 0
- IOS系统原生富文本
- 29. IOS系统原生富文本 自定义Label颜色
- iOS 系统富文本
- ios 富文本编辑器
- iOS之富文本
- iOS之富文本
- ios之富文本
- iOS之富文本
- iOS之富文本
- iOS 富文本 AttributedString
- IOS-富文本
- iOS之富文本
- ios 富文本
- iOS AttributeString(富文本)
- iOS之富文本
- iOS之富文本
- iOS 富文本
- ios编程富文本
- ubuntu下使用eclipse开发springmvc项目--实现controller接口方式
- EXTJS上层组件在IE中首次显示不出现问题
- oops 消息 Unable to handle kernel NULL pointer dereference at virtual address .
- iOS绘图基础教程
- SQL 21日自学通(v1.0)笔记1(select语句)
- IOS系统原生富文本
- Unzip 文件到Linux或UNIX的特定目录
- zoj 1915 Above Average
- piwik 丢失数据的原因
- addChildViewController的使用
- radius服务器
- 百度推送--IOS(一)
- 使用Javascript控制文本框只能输入整数或浮点数
- mapreduce全局变量的问题