if(self.textLabel){ for (int i=0; i<self.textLabel.length; i++) { NSRange range=NSMakeRange(i,1); NSString *subString=[self.textLabel substringWithRange:range]; const char *cString=[subString UTF8String]; if (strlen(cString) == 3) { NSLog(@"是汉字"); }else if(strlen(cString) == 1) { NSLog(@"是字母"); } } }