샌드박스 결제 테스트시 실패메시지 Error Domain=SKErrorDomain Code=0 “iTunes Store에 연결할 수 없음” UserInfo=0x717c7b40 {NSLocalizedDescription=iTunes Store에 연결할 수 없음}여러가지 방법 다 해봤지만 그냥 모든콘텐츠 및 설정 지우기 하는것이 가장 빠르다 테스트 기기는 iOS13.x 이었고 기존계정 로그아웃 안하고도 문제없이 샌드박스로그인이 잘됐다.
Math.abs(int a);
+ (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..
iOS 와 동일하게 출력됩니다. public static String getCountry() { return Locale.getDefault().getCountry(); } public static String getDisplayCountry() { return Locale.getDefault().getDisplayCountry(Locale.US); } 2020/08/13 - [Development Note/iOS] - [objective-c] 국가코드 및 국가명 가져오기
+ (NSString*) getLanguageCode { NSString *language = [[NSLocale preferredLanguages] firstObject]; NSDictionary *languageDic = [NSLocale componentsFromLocaleIdentifier:language]; NSString *preferredLanguageCode = [languageDic objectForKey:@"kCFLocaleLanguageCodeKey"]; return preferredLanguageCode; } //output : ko 출처 https://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios
+ (NSString*) getDeviceID { NSString *uniqueIdentifier = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; return uniqueIdentifier; } 출처 https://stackoverflow.com/questions/5468629/device-id-from-an-iphone-app 2020/08/13 - [Development Note/Android] - [Android Java] DeviceID 가져오기
유니티엔진에서 제공하는 deviceUniqueIdentifier 와 동일하게 만들어줍니다. md5 함수 구현부는 아래링크 참조바랍니다. 구글에서 권장하는 사용방법 public static String getDeviceId(Context context) { String deviceId = ""; String android_id = Settings.Secure.getString( context.getContentResolver(), Settings.Secure.ANDROID_ID); deviceId = md5Encode(android_id); return deviceId; }2020/08/13 - [Development Note/iOS] - [objective-c] DeviceID 가져오기 2020/04/1..
- Total
- Today
- Yesterday
- nsurl 에서 nsstring 변환
- tempdir
- abs 함수
- Error Domain=SKErrorDomain Code=0
- 절대값함수
- dialog
- permissionCheck
- abs
- Locale.getDefault().getLanguage()
- ioutil
- java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
- iTunes Store에 연결할 수 없음
- convert nsurl to nsstring
- 퍼미션체크
- countryName
- setCancelable vs setCanceledOnTouchOutside
- Golang
- nsurl to nsstring convert
- countryCode
- DeviceModel
- tempfile
- NSUserDefaults 예제
- LanguageCode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |