첨부파일에 로케일 정보가 들어있고..
쓸 때는 이렇게.. ㅎㅎㅎ
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)
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
721 | Develop | [c] 단기과정[01/07] 제어문, 피보나치수열 | hooni | 2003.04.23 | 7433 |
720 | Develop | [c] 단기과정[01/08] 배열, 포인터 | hooni | 2003.04.23 | 7261 |
719 | Develop | [c] 단기과정[01/08] (다차원 + 배열)포인터, void 포인터 | hooni | 2003.04.23 | 7798 |
718 | Develop | [c] 단기과정[01/08] 과제.. 파스칼 삼각형 | hooni | 2003.04.23 | 7290 |
717 | Develop | [c] 단기과정[01/10] 과제.. swap(any data, ..) | hooni | 2003.04.23 | 6933 |
716 | Develop | [c] 단기과정[01/14] 파일 입출력 | hooni | 2003.04.23 | 6861 |
715 | Develop | [c] 단기과정[01/14] 피보나치, 파스칼.. 파일입출력 | hooni | 2003.04.23 | 7113 |
714 | Develop | [c] 단기과정[01/15] 피보나치, 파스칼.. 링크리스트 | hooni | 2003.04.23 | 7258 |
713 | Develop | [c] 단기과정[01/17] 후위연산 스택 계산기.. | hooni | 2003.04.23 | 7253 |
712 | Develop | [c] 단기과정[01/24] 정렬 알고리즘 | hooni | 2003.04.23 | 6975 |
711 | Develop | [js] 새로고침(refresh)방법과 다른 페이지 바꾸기.. | hooni | 2003.04.23 | 6563 |
710 | Develop | [vbs] CD롬 뱉는 스크립트.. | hooni | 2003.04.23 | 11737 |