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);

    }

}

posted by 욱이다