2012. 10. 31. 14:38
아이폰
일단 동영상을 프로젝트 리소스에 포함 시기고
아래의 소스를 넣으면 동영상이 에뮬레이터 앨범에 추가됨 ㅠㅠ
NSString *path = [[NSBundle mainBundle]pathForResource:@"IMG_0028" ofType:@"MOV"];
UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError:contextInfo:), nil);
- (void)video:(NSString *)videoPath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo {
if (error != nil) {
NSLog(@"Error: %@", error);
}
}
'아이폰' 카테고리의 다른 글
아이폰 dictionary,array 각각 비교//아이폰 정렬 (0) | 2012.11.29 |
---|---|
xcode 커스텀 폰트 사용(ios custom font) (0) | 2012.11.14 |
xcode에서 한글 2byte 를 읽는 방법 (0) | 2012.07.25 |
xcode에서 android 의 헨들러 같은 함수 (0) | 2012.07.18 |
맥 컴퓨터 스크린 샷 하기 mac screen shot (0) | 2012.07.11 |