2011-09-30 160 views

回答

20

關鍵是要覆蓋NSUserDefaults語言鍵,然後在main.m的main()函數中調用UIApplicationMain()。嘗試這樣的事情在你的main()功能:

// use whatever language/locale id you want to override 
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"de_DE", nil] 
              forKey:@"AppleLanguages"]; 
[[NSUserDefaults standardUserDefaults] synchronize]; 
int retVal = UIApplicationMain(argc, argv, nil, nil); 
+0

是是是是,我非常感謝你) –

+0

@TimurMustafaev給他100 $ ;-) –