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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -