标签:
// // source == <a href="http://app.weibo.com/t/feed/2llosp" rel="nofollow">OPPO_N1mini</a> NSRange range; //rangeOfString是从左到右检索出第一个>的位置 range.location = [source rangeOfString:@">"].location+1; range.length = [source rangeOfString:@"</"].location - range.location; NSString *str = [source substringWithRange:range]; _source = [NSString stringWithFormat:@"来自 %@",str];
标签:
原文地址:http://my.oschina.net/u/2346786/blog/498348