Contents

Develop
2018.11.29 07:47

[ios] Locale Identifiers

Views 1739 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. [python] 파라미터 앞에 *, ** 의 의미? (*args, **kwargs)

  2. [js] 모바일 스크롤 방지(해제)

  3. ZBar 라이브러리를 이용한 바코드 스캔 앱 개발하기

  4. [ios] Requesting Location Permissions in iOS

  5. [ios] Locale Identifiers

  6. [ios] 동영상 플레이어 샘플 (for Remote Url)

  7. [ios] How To Use UIScrollView to Scroll and Zoom Content (Using Objective-C)

  8. [web] 더 빠른 웹을 위한 프로토콜, 'HTTP/2'

  9. [ios] @property의 속성 (strong, weak, copy) 사용 경우

  10. [ios] Pod 특정 버전 설치하고 사용하기

  11. [c] 한글 문자열 출력

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

Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 71 Next
/ 71