把本地视屏保存到系统相册

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);//获取沙河

 NSString *path = [[paths objectAtIndex:0] stringByAppendingPathComponent:[NSString stringWithFormat:@"File//%@.mp4",self.dateFormateStr]];//获取路径

UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError:contextInfo:), nil);//保存到系统相册

你可能感兴趣的:(把本地视屏保存到系统相册)