标签:style blog io color os sp for div log
从环信中找到的部分不错的代码,拿出来记录一下
是否是中文
-(BOOL)isChinese{ NSString *match=@"(^[\u4e00-\u9fa5]+$)"; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF matches %@", match]; return [predicate evaluateWithObject:self]; }
标签:style blog io color os sp for div log
原文地址:http://www.cnblogs.com/anxin1225/p/4108486.html