以下は、アプリの言語を設定するために使用しているコードです。AppleLanguages の正しい値を見つけることができない場合があります。AppleLanguages の値のリストはどこで入手できますか?
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [デフォルト setObject:[NSArray arrayWithObject:@"arabic"] forKey:@"AppleLanguages"];
Follow this tutorial: http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
Here is the code (as shown on the previous tutorial) http://www.loc.gov/standards/iso639-2/php/English_list.php
main() 関数のように、アプリの早い段階でこれを行います。
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"ar"] forKey:@"AppleLanguages"];