첨부파일에 로케일 정보가 들어있고..
쓸 때는 이렇게.. ㅎㅎㅎ
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)
-
[css] z-index에 설정할 수 있는 최대값?
-
[js] jQuery plugin 요약
-
[php] GregorianToJD(), JDToGregorian() 함수 내용
-
[php] 하루 전 날짜 쉽게 구하기.
-
[js] AngularJS를 소개합니다.
-
[ios] UIButton multi-line iOS7
-
[php] substr() 한글 자를 때 깨짐 방지
-
[ios] UIWebView 쿠키 유지
-
[ios] UIWebView에서 NSURLRequest에 Cookie 실어 보내기
-
[js] 주소표시줄 URL 읽어오기 (변경까지)
-
[ios] 네트워크 인디케이터(NetworkActivityIndicator) 작동
-
[ios] iOS 6.0 이상 회전 하기 (이전 버전과 비교 변경 부분)