How can I delete video stored in the photo library ?
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-04-28T09:45:52Z
Indexed on
2010/04/28
9:53 UTC
Read the original article
Hit count: 202
cocoa-touch
|iphone-sdk
I have saved video in to the photo library.
-(void)exportVideo:(id)sender
{
NSString *path = [DOCUMENTS_FOLDER stringByAppendingString:@"/air.mp4"];
NSLog(@"Path:%@", path);
NSLog(@"Export Button CLicked");
UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError: contextInfo:), nil);
}
- (void)video:(NSString *)videoPath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
NSLog(@"Finished saving video with error: %@", error);
}
Now I need to delete the video i have stored programmatically. How can I delete the video ?
Are there any functions for it?
Thank You.
© Stack Overflow or respective owner