how can stop creating duplicates in camera roll while using UISaveVideoAtPathToSavedPhotosAlbum to s
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-04-26T04:34:42Z
Indexed on
2010/04/26
4:43 UTC
Read the original article
Hit count: 520
I have a video in applications documents folder. I need it to be saved in camera roll. So, I used UISaveVideoAtPathToSavedPhotosAlbum method to save it in camera roll. It's working and I can see the video added to camera roll.
But, the problem is every time I execute the application with same video(with same file name), it is added another time in camera roll instead of replacing the old one. So, it is creating the duplicates of the video.
How can I make the application work like if a video is present in camera roll and again added with same file name, then old one is replaced by new video.
© Stack Overflow or respective owner