Develop
2018.11.29 07:47
[ios] Locale Identifiers
조회 수 1740 댓글 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)
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
981 | Develop | [android] 코드에서 문자열로 Resource 가져오기 | hooni | 2015.07.09 | 4074 |
980 | Develop | [android] AlertDialog 메시지 창 띄우기 | hooni | 2015.07.09 | 984 |
979 | Develop | [c] 이진트리/트리 순회법 코드(전위/중위/후위) 5 | hooni | 2015.07.02 | 21066 |
978 | Develop | 정리할 자료. | hooni | 2015.07.02 | 824 |
977 | Develop | [ios] NSNotificationCenter 초간단 사용 예~ ㅋㄷ | hooni | 2015.06.26 | 756 |
976 | Develop | [c] 이진 탐색 두 가지 코드 (재귀/반복) | hooni | 2015.06.26 | 976 |
975 | Develop | [c] FSN 온라인 코딩 테스트 (Sorting, Binary Search) | hooni | 2015.06.26 | 1131 |
974 | Develop | [ppt] iOS 플라랩#04(2015.06.19) 발표 자료 | hooni | 2015.06.04 | 773 |
973 | Develop | Aspect Oriented Programming in Objective-C | hooni | 2015.05.18 | 949 |
972 | Database | [mysql] MySql 에서 정렬 후 그룹 하는 방법 | hooni | 2015.05.07 | 3138 |
971 | Etc | 인증서 *.p12 파일을 *.pem 파일로 변환 | hooni | 2015.04.30 | 1910 |
970 | Etc | IPR 특허 관련 | hooni | 2015.04.28 | 0 |