2014-09-11 2 views
0

iOS 응용 프로그램에 기능이 있습니다. 사용자는 사진이나 비디오를 iPhoto 응용 프로그램에 저장할 수 있습니다. 사용자가 '저장'버튼을 누르면 사진이나 비디오가 다시 저장됩니다. 기존 파일을 다시 저장하는 대신 덮어 쓸 수있는 방법이 있습니까?iPhoto 응용 프로그램에서 이미지 덮어 쓰기

 [self writeVideoAtPathToSavedPhotosAlbum:url completionBlock:^(NSURL* assetURL, NSError* error) { 
         //error handling 
         if (error!=nil) { 
          completionBlock(error); 
          return; 
         } 

         //add the asset to the custom photo album 
         [self addAssetURL: assetURL 
        withCompletionBlock:completionBlock]; 

        }]; 

이 문제에 대한 제안이 있으십니까? 체크섬 사용?

답변

0

한 번만 클릭하면 저장 버튼을 사용 중지하거나 문서 디렉토리에 저장하고 체크섬 알고리즘을 사용할 수 없습니다. 이 답변을 확인하십시오. check image exist