- (BOOL)isValidateName:(NSString *)name{
NSUInteger character = 0;
for(int i=0; i< [name length];i++){
int a = [name characterAtIndex:i];
if( a > 0x4e00 && a < 0x9fff){ //判断是否为中文
character +=2;
}else{
character +=1;
}
}
if (character >=6 && character <=12) {
return YES;
}else{
return NO;
}
}