NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSMutableArray* languages = [userDefaults objectForKey:@"AppleLanguages"];
[languages insertObject:@"de" atIndex:0]; // ISO639-1
[[NSUserDefaults standardUserDefaults] synchronize];
More Related Contents:
- Are the Core Image filters in iOS 5.0 fast enough for realtime video processing?
- Obtaining an NSDecimalNumber from a locale specific string?
- NSLocale currentLocale always returns “en_US” not user’s current language
- Why is autorelease especially dangerous/expensive for iPhone applications?
- Drawing incrementally in a UIView (iPhone)
- How to detect total available/free disk space on the iPhone/iPad device?
- Does my application “contain encryption”?
- Use CoreData or SQLite on iPhone? [closed]
- NSCalendar first day of week
- Open Source Cocoa/Cocoa-Touch POP3/SMTP library?
- Can I force an iPhone user to upgrade an application?
- Arguments in @selector
- UITextField with secure entry, always getting cleared before editing
- How do I use CaptiveNetwork to get the current WiFi Hotspot Name
- Enabling crash logs symbolication in Xcode 4.2
- iOS: Device orientation on load
- How can I locally detect iPhone clock advancement by a user between app runs?
- UIImageWriteToSavedPhotosAlbum saves to wrong size and quality
- iOS 11 iPhone X simulator UITabBar icons and titles being rendered on top covering eachother
- UITableView cell with background image
- iPhone: AVAudioPlayer unsupported file type
- iPhone Smooth Transition from One Video To Another
- Sound overlapping with multiple button presses
- UIImage Saving image with file name on the iPhone
- Which open source licenses are compatible with the Apple’s iPhone and its official App Store ? [closed]
- self.title sets navigationController and tabBarItem’s title? Why?
- Calling method in current view controller from App Delegate in iOS
- Could not load nib in bundle on iPhone device
- Objective c, Memory management of instance members
- Setting the zoom level for a MKMapView