NSMutableString * ms = [[NSMutableString alloc] initWithString:@"中华人民共和国"];
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformMandarinLatin, NO)) {
NSLog(@"pinyin: %@", ms);
}//有声调
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformStripDiacritics, NO)) {
NSLog(@"pinyin: %@", ms);
}//无声调
原文地址:http://www.cnblogs.com/goodheart/p/3990112.html