Develop
2018.11.29 07:47
[ios] Locale Identifiers
조회 수 1632 댓글 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)
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
453 | Develop | [php] 논문 관리 프로그램.. ㅋㅋ | hooni | 2013.04.23 | 7261 |
452 | Develop | [c] 단기과정[01/08] 과제.. 파스칼 삼각형 | hooni | 2003.04.23 | 7256 |
451 | Develop | [linux] crond 사용법.. ㅋㅋ | hooni | 2013.04.23 | 7246 |
450 | Develop | [c] 패킷정보출력(경로, 패킷길이, 3hand, sync, ack..) | hooni | 2003.04.23 | 7246 |
449 | Develop | [c++] mfc로 만든 인테리어 수납 시스템(2D기반 설계) | hooni | 2013.04.23 | 7237 |
448 | Develop | [c] 단기과정[01/15] 피보나치, 파스칼.. 링크리스트 | hooni | 2003.04.23 | 7234 |
447 | Develop | [html] 메타태그 사용예.. 은지나 바라~ | hooni | 2003.04.23 | 7234 |
446 | Develop | [c] 심심해서.. fseek() 예제.. | hooni | 2003.04.23 | 7229 |
445 | Develop | [jsp] 초간단한 include 구문 예제.. | hooni | 2013.04.23 | 7227 |
444 | Develop | [c] 단기과정[01/17] 후위연산 스택 계산기.. | hooni | 2003.04.23 | 7226 |
443 | Develop | [js] 네이버에서 그림 퍼올 때.. URL Encoding 관련ㅋㅋ | hooni | 2013.04.23 | 7223 |
442 | Develop | [c] 단기과정[01/08] 배열, 포인터 | hooni | 2003.04.23 | 7223 |