[ios] Locale Identifiers
첨부 '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)
-
[c#]뉴 툴바 개인적으로 만든거.. (old)
-
알고리즘 성능분석
-
[ios] How To Use UIScrollView to Scroll and Zoom Content (Using Objective-C)
-
[ios] 커스텀 폰트 사용하기 (Custom Fonts)
-
[ios] Xcode에서 특정 파일만 ARC 따로 설정하는 방법
-
[ios] iOS 사운드 관련 프레임워크
-
[io] Apple Watch, Today Extension 앱ID 설정
-
[js] Array.splice() 설명
-
[vim] vim 명령으로  문자 제거하기 (remove 65279 bomb)
-
[ios] Swift 4 Dictionary 사용하기
-
[android] 안드로이드 앱 문서 샘플
-
[ios] 여러 버전의 Xcode 사용하기