Manually set the locale of an application in iPhone

The following code will change the locale of the application to Chinese. However, you must set it in the beginning of the app, and it will take effect in next launch of the app.


[[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObject:@"zh"] forKey:@"AppleLanguages"];