您的位置:首页 > 移动开发 > IOS开发

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: