Check language in iOS app
问题 Task is : I have got two UIImageViews, and I want present ImageView1 if system language is Ukrainian, and if it is not Ukrainian(English/Polish etc) I want present ImageView2. I tried : println(NSUserDefaults.standardUserDefaults().objectForKey("AppleLanguages")) but this code gives only list of available languages. I also tried var language: AnyObject? = NSLocale.preferredLanguages().first but how can I compare this variable with English or Ukrainian language? 回答1: Swift 3 You can take the