+ (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..
public static String getTimeZone() { TimeZone timeZone = TimeZone.getDefault(); Calendar calendar = GregorianCalendar.getInstance(timeZone); int offsetInMillis = timeZone.getOffset(calendar.getTimeInMillis()); Log.v("gmt offset(sec)", String.valueOf(offsetInMillis)); //초에서 분으로 환산 String offset = String.format(Locale.getDefault(),"%02d", Math.abs((offsetInMillis / 60000))); Log.v("gmt offset(min)..
requestpermissions
- Total
- Today
- Yesterday
- 퍼미션체크
- NSUserDefaults 예제
- dialog
- nsurl 에서 nsstring 변환
- permissionCheck
- countryCode
- LanguageCode
- convert nsurl to nsstring
- java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
- countryName
- ioutil
- tempdir
- Golang
- tempfile
- abs 함수
- DeviceModel
- iTunes Store에 연결할 수 없음
- setCancelable vs setCanceledOnTouchOutside
- Locale.getDefault().getLanguage()
- abs
- nsurl to nsstring convert
- 절대값함수
- Error Domain=SKErrorDomain Code=0
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |