Develop
2018.11.29 07:47
[ios] Locale Identifiers
조회 수 1640 댓글 0
첨부 '1' |
---|
첨부파일에 로케일 정보가 들어있고..
쓸 때는 이렇게.. ㅎㅎㅎ
import UIKit
print("localeIdentifier, Description")
let identifiers: NSArray = NSLocale.availableLocaleIdentifiers as NSArray
let locale = NSLocale(localeIdentifier: "en_US")
identifiers.forEach {
let name = locale.displayName(forKey: NSLocale.Key.identifier, value: $0)!
print("\($0),\"\(name)\"")
}
let identifiers : NSArray = NSLocale.availableLocaleIdentifiers()
let locale = NSLocale(localeIdentifier: "en_US")
var list = NSMutableString()
for identifier in identifiers {
let name = locale.displayNameForKey(NSLocaleIdentifier, value: identifier)!
list.appendString("\(identifier)\t\(name)\n")
}
print(list)
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
1029 | Develop | macOS에 node, npm 설치하기 (homebrew) | hooni | 2021.11.06 | 1177 |
1028 | Develop | [ios] Facebook SDK 로그인 설명 | hooni | 2017.04.19 | 1181 |
1027 | Develop | [js] Click button copy to clipboard | hooni | 2018.04.05 | 1187 |
1026 | System/OS | Enable Safari Hidden Debug Menu in Mac OS X | hooni | 2017.02.07 | 1194 |
1025 | Etc | 영어. 반드시 외워야 할 문장 패턴 100개 | hooni | 2023.06.08 | 1195 |
1024 | Develop | [ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기 | hooni | 2015.10.23 | 1197 |
1023 | Develop | [ios] Facebook Cache 갱신하는 함수 | hooni | 2017.02.27 | 1197 |
1022 | Develop | [ios] 코코아 프로그래밍의 네이밍 룰(명명 규칙) | hooni | 2017.05.11 | 1198 |
1021 | Develop | [vim] vim 명령으로  문자 제거하기 (remove 65279 bomb) | hooni | 2021.02.03 | 1198 |
1020 | Database | [mysql] ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. | hooni | 2017.12.15 | 1225 |
1019 | Develop | 사이버보안실무 발표자료 (2017.06.08) | hooni | 2017.06.05 | 1228 |
1018 | Develop | [c] Mac OS 에 gmp(gmp.h) 라이브러리 설치 | hooni | 2016.10.03 | 1234 |