DJStatus.m
// 更新来源显示 - (void)setSource:(NSString *)source { NSRange range; range.location = [source rangeOfString:@">"].location + 1; range.length = [source rangeOfString:@"<" options:NSBackwardsSearch].location - range.location; _source = [NSString stringWithFormat:@"来自%@",[source substringWithRange:range]]; }
最终效果:
原文:http://www.cnblogs.com/yongdaimi/p/6087253.html