Contents

Develop
2018.11.29 07:47

[ios] Locale Identifiers

Views 3725 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

첨부파일에 로케일 정보가 들어있고..

쓸 때는 이렇게.. ㅎㅎㅎ


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)


?

  1. [php] 3 Ways to Detect Mobile or Desktop in PHP

  2. 자주 쓰는 Docker 명령어 alias

  3. [python][django] request.cookie 읽어오기 ㅋㅋㅋ (쓰기)

  4. SSH Passwordless Login Using SSH Keygen in 5 Easy Steps

  5. [virtualbox] VirtualBox에 Ubuntu 설치하기

  6. [mysql] MySQL 데이터베이스 추가 및 사용자 추가

  7. [oracle] Oracle 사용자 추가 절차

  8. [mysql] MySQL 백업 및 복구

  9. [mysql] MySql DB/테이블 사이즈 확인을 위한 쿼리

  10. SQL JOIN 정리 (Inner Join & Outer Join)

  11. [python] 파라미터 앞에 *, ** 의 의미? (*args, **kwargs)

  12. 링크들 보고 지울 내용

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 99 Next
/ 99