1
有誰知道如何將DateTime從英文轉換爲西班牙文?在iPhone中將日期時間從英語轉換爲西班牙語?
E.g轉換:
December 07, 10:42AM
到
Diciembre 07, 10:42AM
請幫助我。如何轉換?
在此先感謝。
我嘗試這樣做:
NSLocale *frLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"es"] autorelease];
NSLog(@"%@", [frLocale displayNameForKey:NSLocaleIdentifier value:@"December 07, 10:42AM"]);
// Value comes Null
感謝您的幫助 – SampathKumar
我還有一個疑問 – SampathKumar
你有什麼疑問? – Narayana