소스 검색

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];
     }