Work With NSLocal Country code in Swift

var pre = NSLocale.preferredLanguages()[0]
 
var preferredLanguages : NSLocale!  
let pre = preferredLanguages.displayNameForKey(NSLocaleIdentifier, 
value: preferredLanguages)
 

Popular posts from this blog

How to Use pagination ScrollView in Swift

UISearchBar search text color , background color swift 3

How To Add Multiple Line in Lable in Swift Ios