+ (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 가져오기
+ (NSString *) getDeviceName { struct utsname systemInfo; uname(&systemInfo); NSString* code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; static NSDictionary* deviceNamesByCode = nil; if (!deviceNamesByCode) { deviceNamesByCode = @{@"i386" : @"Simulator", @"x86_64" : @"Simulator", @"iPod1,1" : @"iPod Touch", // (Original) @"iPod2,1" : @"iPod Touch", // (Second..
코드 예제 NSDateFormatter *dateFormatter = [NSDateFormatter new]; [dateFormatter setDateFormat:@"dd/MM/yyyy HH:mm"]; NSString *localDateString = [dateFormatter stringFromDate:[NSDate date]]; NSLog(@"date = %@", localDateString); //현재 시간 출력 NSTimeZone *localTimeZone = [NSTimeZone localTimeZone]; NSLog(@"Name: %@", localTimeZone.name); //타임존 출력 NSTimeZone *timeZone = [NSTimeZone timeZoneForSecondsFrom..
매개변수가 2개 이상이어야 오버로딩이 가능하다 예제 준비중
apple Developer console 에 앱 등록이 되어 있다는 가정하에 설명한다. 우선 인앱상품등록 부터 준비한다. (앱 업로드는 하지 않아도 샌드박스 결제테스트가 가능하다.) 인앱 상품 등록 소스코드단에서 제품 ID 를 사용하기 때문에 잘 정해주면 된다. 나머지는 수정이 가능하나 제품 ID 는 변경이 안된다. 등록된 상품은 수정 및 삭제가 가능하다. 상품이 등록되었다면 앱 업로드 또는 출시를 하지 않아도 결제테스트 준비가 끝난 것이다. 샌드박스 테스터 추가 샌드박스 결제테스트를 위해 테스터 계정을 추가한다. App Store Connect > 사용자 및 액서스 > Sandbox > 테스터 > 신규 사용자 등록 이메일은 애플계정에 등록되지 않은 이메일주소여야 한다. 인앱 결제 기능 활성화 프로젝트..
구글 로그인 API 사용시 앱 크래쉬 발생시 해결. 에러 로그 Your app is missing support for the following URL schemes: com.googleusercontent.app구글로그인 URL scheme 추가하기 Xcode의 프로젝트 navigation bar에서 프로젝트 이름을 클릭하고‘TARGETS’->‘Info’->‘URL Types’으로 이동하십시오. 그런 다음 '+'버튼을 클릭하고 뒤집힌 client ID를 'URL Schemes'에 추가하십시오. ‘GoogleService-Info.plist’의 목록중 REVERSED_CLIENT_ID에서 클라이언트 ID를 얻을 수 있습니다.
1. NSUserDefaults Instance 얻기 + standardUserDefaults Returns the shared defaults object. Example NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];+ resetStandardUserDefaults Synchronizes any changes made to the shared user defaults object and releases it from memory. Example [NSUserDefaults resetStandardUserDefaults];2. NSUserDefaults Object 초기화 하기 - init Returns an NSUserDef..
1. NSURL 속성 URL: http://www.testUrl.com/notice/contents?a=1&b=2&c=3 (설명을 위한 임시 URL) scheme: http (:// 이전의 텍스트) host: www.testUrl.com (://과 맨 처음 / 사이의 텍스트) path: /notice/contents (맨 처음 /와 ? 사이의 텍스트) query: a=1&b=2&c=3 (? 이후의 텍스트) 예제 NSString *strUrl = @"https://www.api.com/api/info?t=123&sign=test123"; NSURL *reqURL = [NSURL URLWithString:strUrl]; NSLog(@"%@", [reqURL host]); NSLog(@"%@", [reqURL..
- Total
- Today
- Yesterday
- 퍼미션체크
- LanguageCode
- java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
- permissionCheck
- ioutil
- countryName
- Locale.getDefault().getLanguage()
- tempfile
- DeviceModel
- nsurl to nsstring convert
- NSUserDefaults 예제
- convert nsurl to nsstring
- nsurl 에서 nsstring 변환
- tempdir
- 절대값함수
- abs
- Error Domain=SKErrorDomain Code=0
- setCancelable vs setCanceledOnTouchOutside
- Golang
- abs 함수
- dialog
- iTunes Store에 연결할 수 없음
- countryCode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |