ios - How to get knownTimeZoneNames according to currentLocale -


I want to automatically translate a list of knownTimeZoneNames into the user's language.
I have this code for those countries that work very well, but I can not be successful in doing this for the known timezone name .

  NSLocale * localeTwo = [NSLocale currentLocale]; NSArray * countryArray = [NSLocale ISOCountryCodes]; NSMutableArray * Sort Country Country = [[NSMUTABARRROR] INST]; (For countryCode in NSString * countryArray) {NSString * displayNameString = [local two display nameForkeys: NSLocaleCountryCode value: country code]; [Sorted countiere ad object: displayNameString]; NSLog (@ "NSDisplayNameString:% @", displayNameString); } [Sorted Couturerera Sort Using Selector: @Selector (Localized Compaired :)); [Sorted Couturerera Sort Using Selector: @Selector (Localized Compaired :));    

[NSTimeZone knownTimeZoneNames] Talks Try: NSArray * Known TimezoneArere = [NSTimeZone knownTimeJonname]; NSLog (@ "knownTimeJonesArere =% @", knowntimezonearere);

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -