中文变英文字母(ios)

[_EnglishName setString:addressPerson.name];
if (CFStringTransform((__bridge CFMutableStringRef)_EnglishName, 0, kCFStringTransformMandarinLatin, NO)) {
NSLog(@"Pingying: %@", _EnglishName); // wǒ shì zhōng guó rén
}
if (CFStringTransform((__bridge CFMutableStringRef)_EnglishName, 0, kCFStringTransformStripDiacritics, NO)) {
NSLog(@"Pingying: %@", _EnglishName); // wo shi zhong guo ren
}

中文变英文字母(ios),布布扣,bubuko.com

中文变英文字母(ios)

上一篇:android 利用Bitmap获取圆角矩形、圆形图片


下一篇:android.content.ActivityNotFoundException: Unable to find explicit activity class {...}; have you declared this activity in your AndroidManifest.xml?