iOS 判定string是不是中文字符

 1 +(BOOL)IsChinese:(NSString *)str
 2 {
 3     for(int i=0; i< [str length];i++)
 4     {
 5         int a = [str characterAtIndex:i];
 6         if( a > 0x4e00 && a < 0x9fff)
 7         {
 8             return YES;
 9         }
10         
11     }
12     return NO;
13 }
原文地址:https://www.cnblogs.com/fuunnyy/p/5345540.html