NSMutableString *ms = [[NSMutableString alloc] initWithString:@"例子"];
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformMandarinLatin, NO))
{
NSLog(@"Pingying: %@", ms);
}
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformStripDiacritics, NO))
{
NSLog(@"Pingying: %@", [[ms uppercaseString] substringToIndex:1]);
}