반응형

 NSDictionary *attributes = [fileManager attributesOfItemAtPath:[NSString stringWithFormat:@"%@/%@", documentPath, sortArr]  error:NULL];

        

        //NSLog(@"파일 정보 : %@", [attributes objectForKey:NSFileCreationDate]);

        //NSLog(@"파일 정보 : %@", attributes);

 

위에 NSSring으로 들어간게 파일 경로 입니다.

 

위와 같이 하시면 파일의 정보를 가져올수 있습니다.

 

--맥부기 코스모스님 답변에서 발췌

반응형

'iOS > objective-c' 카테고리의 다른 글

화면 자동 꺼짐 방지  (0) 2018.12.12
맨날 헷갈리는 nsstring substring  (0) 2018.12.12
ios 날짜구하기  (0) 2018.12.12
ios 키보드 처리  (0) 2018.12.12
푸쉬 인증서 변환(.p12 -> .pem)  (0) 2018.12.12
블로그 이미지

앱스페이스

,

in house 배포

iOS/app(iOS) 2018. 12. 12. 16:35
반응형

1. 엔터프라이즈 계정 생성

2. 인증서&프로비저닝 등록

3. 앱제작

4. 아카이브

5. save for enterprise체크

5-1. application url : 실제 ipa 파일이 웹 서버에 올라가 있는 주소

5-2. 타이틀은 타이틀

6. url에 맞춰 ipa파일 업로드

7. 생성된 .plist파일도 웹 서버에 업로드

ex) test01.ipa파일을 http://test.com/download/test01.ipa

 test01.plist파일을 http://test.com/download/test01.plist 각각 업로드

8. 다운로드 유도할 페이지 하나 만들기

ex) test01.html

<body>

<a href="itms-services://?action=download-manifest&url=http://test.com/download/test01.plist">tjfcl</a>

</body >

plist파일 주소를 링크 시켜주는게 포인트. itms-services://?action=download-manifest&url= 까지는 그대로 써주면 됨

9. html파일도 적당한곳에 업로드

10. 고객한테 html파일 주소를 보내주면 끗

반응형
블로그 이미지

앱스페이스

,

ios 날짜구하기

iOS/objective-c 2018. 12. 12. 16:33
반응형

NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init];

            [outputFormatter setDateFormat:@"yyyy:MM:dd:HH:mm:SS"];

            NSString *tmpDate = nil;

            tmpDate = [outputFormatter stringFromDate:[NSDate date]];

 

 

한달뒤

NSDateComponents *components = [[[NSDateComponents alloc] init] autorelease];

components.month = 1;

NSDate *nowDate = [NSDate date];

NSDate *date = [[NSCalendar currentCalendar] dateByAddingComponents:components toDate:nowDate options:0];

 

요일, 지역

NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease];
        [dateFormat setDateFormat:@"EEEE MMMM d, YYYY"];
        [dateFormat setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"ko_KR"] autorelease]];

 

//출력결과
//Today : 수요일 10월 6, 2010

반응형

'iOS > objective-c' 카테고리의 다른 글

맨날 헷갈리는 nsstring substring  (0) 2018.12.12
앱 내부 파일 정보 보기  (0) 2018.12.12
ios 키보드 처리  (0) 2018.12.12
푸쉬 인증서 변환(.p12 -> .pem)  (0) 2018.12.12
ios os version  (0) 2018.12.12
블로그 이미지

앱스페이스

,