iOS设置字符串指定位置的颜色和字体
来源:互联网 发布:东盛安防监控软件 编辑:程序博客网 时间:2024/05/21 17:05
NSMutableAttributedString * pointMut = [[NSMutableAttributedStringalloc] initWithString:point];
[pointMut setAttributes:@{NSForegroundColorAttributeName:oragineColorGlk1,NSFontAttributeName:[UIFontsystemFontOfSize:12]}range:NSMakeRange(7, strPoint0.length)];
[pointMut setAttributes:@{NSForegroundColorAttributeName:oragineColorGlk1,NSFontAttributeName:[UIFontsystemFontOfSize:12]}range:NSMakeRange(point.length - huiJiFen.length, [huiJiFenlength])];
temCell.jifenLabel.textColor =BackColorGrayGlk2;
temCell.jifenLabel.attributedText = pointMut;
在iOS 7.1版本之后,通过itms-service安装应用时,要求itms-service协议后面的url的值即plist文件的地址必须为https地址,且设备必须信任此https服务器的SSL证书。关于这个问题,可参考另一篇博客
itms-services://?action=download-manifest&url=https://www.hybunion.com/download/ios/neicemerchant.plist
- iOS设置字符串指定位置的颜色和字体
- iOS开发:字符串设置指定内容的文字颜色、文字大小、文字字体类型
- RichEditControl用法——设置指定字符串的字体颜色
- iOS 设置UILabel中的text指定范围的字体颜色
- iOS9 UIButton设置字体颜色和字体的大小、字体的位置
- iOS 设置字体颜色和多种字体
- ios学习笔记:设置UIButton的文字显示位置、字体的大小、字体的颜色
- iOS设置TextField的placeholder的颜色,位置,字体,光标颜色
- IOS字体设置和颜色设置
- iOS修改UIButton setTitle字体颜色和调整字体位置
- iOS 设置uitextField的placehold的字体颜色和字体大小
- iOS 字符串显示不同的颜色和字体
- IOS设置全局的导航图片和字体颜色
- IOS 设置Section的背景色和字体颜色
- iOS开发-设置NavigationBar的颜色和字体属性
- android textview字符串指定分段设置字体颜色
- 设置标签中字符串的子串(指定位置)的颜色
- iOS datepicker 和 pickerView 设置字体颜色
- 思
- 数据抓取的艺术:Selenium+Phantomjs数据抓取环境配置
- 快学Scala 第三章习题答案
- iOS 8自定义动画转场上手指南
- 醉
- iOS设置字符串指定位置的颜色和字体
- 【第七章】 对JDBC的支持 之 7.3 关系数据库操作对象化 ——跟我学spring3
- Editplus 正则表达式
- 学习笔记7: 屏幕尺寸相关及 dp,px,sp间换算
- noi 2729:Blah数集——单调队列
- yolo_playvideo.c
- 回味曾经
- 如何通过友盟分析发布后App崩溃日志
- hibernate map