- (NSString *)firstCharactor:(NSString *)aString
{
//轉成了可變字串
NSMutableString *str = [NSMutableString stringWithString:aString];
//先轉換為帶聲調的拼音
CFStringTransform((CFMutableStringRef)str,NULL, kCFStringTransformMandarinLatin,NO);
//再轉換為不帶聲調的拼音
CFStringTransform((CFMutableStringRef)str,NULL, kCFStringTransformStripDiacritics,NO);
//轉化為大寫拼音
NSString *pinYin = [str capitalizedString];
//獲取並返回首字母
return [pinYin substringToIndex:1];
}