瀏覽代碼

clear code

marinofaggiana 5 年之前
父節點
當前提交
f7c2bb3a19
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      iOSClient/Settings/CCManageAccount.m

+ 2 - 1
iOSClient/Settings/CCManageAccount.m

@@ -137,7 +137,8 @@
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"usercity" rowType:XLFormRowDescriptorTypeInfo title:NSLocalizedString(@"_user_country_", nil)];
         [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
         [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"detailTextLabel.font"];
-        row.value = tableAccount.country;
+        row.value = [[NSLocale systemLocale] displayNameForKey:NSLocaleCountryCode value:tableAccount.country];
+        //NSArray *countryCodes = [NSLocale ISOCountryCodes];
         [section addFormRow:row];
     }