Contents

Develop
2018.11.29 07:47

[ios] Locale Identifiers

Views 1750 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. [ios] Locale Identifiers

    Date2018.11.29 CategoryDevelop Byhooni Views1750
    Read More
  2. [ios] libxml/tree.h file not found

    Date2013.08.08 CategoryDevelop Byhooni Views18773
    Read More
  3. [ios] iphone SetDeviceOrientation 화면 강제 회전

    Date2013.11.20 CategoryDevelop Byhooni Views18518
    Read More
  4. [ios] iOS에서 디바이스 종류 알아오기

    Date2014.05.24 CategoryDevelop Byhooni Views3766
    Read More
  5. [ios] iOS앱의 Xcode 빌드 과정

    Date2015.01.03 CategoryDevelop Byhooni Views2409
    Read More
  6. [ios] iOS 의 인앱구매 소개

    Date2014.04.29 CategoryDevelop Byhooni Views3907
    Read More
  7. [ios] iOS 앱 아이콘을 만드는 유틸

    Date2015.01.03 CategoryDevelop Byhooni Views955
    Read More
  8. [ios] iOS 사운드 관련 프레임워크

    Date2014.04.18 CategoryDevelop Byhooni Views3084
    Read More
  9. [ios] iOS In App Purchase 코드 부분 샘플 2

    Date2013.11.20 CategoryDevelop Byhooni Views11340
    Read More
  10. [ios] iOS In App Purchase 코드 부분 샘플 1

    Date2013.11.20 CategoryDevelop Byhooni Views11806
    Read More
  11. [ios] iOS In App Purchase #2 (코드 구현)

    Date2013.11.20 CategoryDevelop Byhooni Views13812
    Read More
  12. [ios] iOS In App Purchase #1 (코드 구현 전 웹 설정 작업)

    Date2013.11.20 CategoryDevelop Byhooni Views14559
    Read More
Board Pagination Prev 1 ... 29 30 31 32 33 34 35 36 37 38 ... 71 Next
/ 71