Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 528 Bytes

// Save to album

  • (void)saveToPhotoLibrary:(NSString *)path { if (UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(path)) { UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(videoPath:didFinishSavingWithError:contextInfo:), NULL); } else { FFDebug(@"Path is not compatible: %@", path); } }

  • (void)videoPath:(NSString *)videoPath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo { if (error) { FFDebug(@"Error saving: %@", error); } else { FFDebug(@"Saved"); } }