[_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
}
原文地址:http://www.cnblogs.com/lingzeng/p/3859795.html