标签:
-(BOOL)isChinese{
NSString *match=@"(^[\u4e00-\u9fa5]+$)";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF matches %@", match];
return [predicate evaluateWithObject:self];
}
标签:
原文地址:http://www.cnblogs.com/hanyanfeng/p/5014064.html