[objective-c] 국가코드 및 국가명 가져오기
+ (NSString*) getCountryCode { NSLocale *currentLocale = [NSLocale currentLocale]; NSString *countryCode = [currentLocale objectForKey:NSLocaleCountryCode]; return countryCode; } // output : KR + (NSString*) getCountryName { NSLocale *locale = [NSLocale currentLocale]; NSString *countryCode = [locale objectForKey: NSLocaleCountryCode]; NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentif..
Development Note/iOS
2020. 8. 13. 19:17
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- nsurl to nsstring convert
- 절대값함수
- abs 함수
- setCancelable vs setCanceledOnTouchOutside
- countryName
- permissionCheck
- dialog
- Golang
- iTunes Store에 연결할 수 없음
- abs
- convert nsurl to nsstring
- java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
- Locale.getDefault().getLanguage()
- NSUserDefaults 예제
- tempfile
- LanguageCode
- Error Domain=SKErrorDomain Code=0
- nsurl 에서 nsstring 변환
- DeviceModel
- ioutil
- countryCode
- 퍼미션체크
- tempdir
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함