iOS设置字符串指定位置的颜色和字体
2016-01-11 14:51
393 查看
NSMutableAttributedString * pointMut = [[NSMutableAttributedString
alloc] initWithString:point];
[pointMut setAttributes:@{NSForegroundColorAttributeName:
oragineColorGlk1,NSFontAttributeName:[UIFont
systemFontOfSize:12]}
range:NSMakeRange(7, strPoint0.length)];
[pointMut setAttributes:@{NSForegroundColorAttributeName:
oragineColorGlk1,NSFontAttributeName:[UIFont
systemFontOfSize:12]}
range:NSMakeRange(point.length - huiJiFen.length, [huiJiFen
length])];
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
alloc] initWithString:point];
[pointMut setAttributes:@{NSForegroundColorAttributeName:
oragineColorGlk1,NSFontAttributeName:[UIFont
systemFontOfSize:12]}
range:NSMakeRange(7, strPoint0.length)];
[pointMut setAttributes:@{NSForegroundColorAttributeName:
oragineColorGlk1,NSFontAttributeName:[UIFont
systemFontOfSize:12]}
range:NSMakeRange(point.length - huiJiFen.length, [huiJiFen
length])];
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键盘高度
- iOS9适配第三方登录时在info.Plist中添加URL Schemes的白名单
- iOS坐标问题
- iOS关于autolayout的使用
- iOS工程通用模块介绍
- 华硕BIOS密码表2002-2011
- 源码推荐(01.11B):iOS项目分层,Widget手机任务栏
- IOS KVO 学习
- iOS 删除沙盒文件中某一个视频
- iOS开发——Push Notification(一)
- iOS8 Size Classes的理解与使用
- Github上的热门iOS开源项目:AFNetworking、MagicalRecord、BlocksKit以及XVim
- IOS第三方框架集合
- iOS蓝牙连接外设
- IOS利用SDWebImage来下载头像图片
- 关于 NSURLSession 的上传和下载
- iOS Xcode 7 缺少*.dylib库的解决方法
- ios开发必备第三方库
- iOS中判断
- iOS崩溃调试的使用和技巧总结