You have to set the AppleLanguages
key with an array, not a string:
UserDefaults.standard.set(["de"], forKey: "AppleLanguages")
More Related Contents:
- iOS 8 UITableView separator inset 0 not working
- WKWebView not loading local files under iOS 8
- Custom UITableViewCell from nib in Swift
- What is an “unwrapped value” in Swift?
- Unable to run app in Simulator: Xcode beta 6 iOS 8
- Base64 Decoding in iOS 7+
- Xcode iOS 8 Keyboard types not supported
- How to present popover properly in iOS 8
- How to call gesture tap on UIView programmatically in swift
- Multiple UILabels inside a self sizing UITableViewCell
- Save images with phimagemanager to custom album?
- Optional chaining in Swift Closure where return type has to be Void
- iOS 8 Auto cell height – Can’t scroll to last row
- How to access CoreData model in today extension (iOS)
- Detect volume button press
- Right way of determining internet speed in iOS 8
- Why is UICollectionViewCell’s outlet nil?
- IOS 8 Tab Bar Item Background Colour
- Code sign error : bundle format unrecognized, invalid, or unsuitable
- How to create a String with format?
- Why can’t I call the default super.init() on UIViewController in Swift?
- @property/@synthesize equivalent in swift
- NavigationBar bar, tint, and title text color in iOS 8
- reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling
- MKMapView: Instead of Annotation Pin, a custom view
- Passing arguments to selector in Swift
- Usage of protocols as array types and function parameters in swift
- How to allow user to pick the image with Swift?
- swift NSTimer in Background
- Migrating from UIWebView to WKWebView