Develop
2018.11.29 07:47
[ios] Locale Identifiers
조회 수 1607 댓글 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)
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
9 | Algorithm | OCB5 Injection 앗싸뵹! ㅋㅋ | hooni | 2014.07.01 | 779 |
8 | Algorithm | 러시아 페인트공 알고리즘에 대해.. | hooni | 2013.04.23 | 22881 |
7 | Algorithm | 디피헬만(Diffie-Hellman) 초간단 개념.. | hooni | 2013.04.23 | 81004 |
6 | Algorithm | 암호 알고리즘 및 프로토콜의 이해.. | hooni | 2013.04.23 | 17192 |
5 | Algorithm | Polynomial time 이란? ㅋㅋ | hooni | 2013.04.23 | 22235 |
4 | Algorithm | [security] 블럭 암호에 대해서.. | hooni | 2013.04.23 | 17102 |
3 | Algorithm | 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. | hooni | 2013.04.23 | 13354 |
2 | Algorithm | [security] RSA 암호화 설명과 예.. | hooni | 2013.04.23 | 16600 |
1 | Algorithm | [algorithm] Greedy (탐욕 기법) | hooni | 2003.04.23 | 15096 |