黄舟2017-04-17 13:29:24
http://www.cnblogs.com/taintain1984/p/3550525.html
This article can solve your current problem and the description is very detailed
高洛峰2017-04-17 13:29:24
[attributeString setAttributes:@{NSForegroundColorAttributeName:[UIColor redColor], NSLinkAttributeName:[NSURL URLWithString:@"http://www.google.com"] } range:[str rangeOfString:@"红色"]];