if ([mediaType isEqualToString:(Nsstring *)kUTTypeImage]) { image = [info objectForKey:UIImagePickerControllerEditedImage]; UIImageWritetoSavedPhotosAlbum(image,self,@selector(image:finishedSavingWithError:contextInfo:),nil); }
如何将重新编码的视频保存到photoAlbum?
解决方法 检查以下代码……- (voID)imagePickerController:(UIImagePickerController *)picker dIDFinishPickingMediawithInfo:(NSDictionary *)info{ Nsstring *mediaType = [info objectForKey:UIImagePickerControllerMediaType]; if ([mediaType isEqualToString:@"public.movIE"]){ // Saving the vIDeo / // Get the new unique filename Nsstring *sourcePath = [[info objectForKey:@"UIImagePickerControllerMediaURL"]relativePath]; UISaveVIDeoAtPathToSavedPhotosAlbum(sourcePath,nil,nil);}总结
以上是内存溢出为你收集整理的iphone – 如何将录制的视频保存到相册中?全部内容,希望文章能够帮你解决iphone – 如何将录制的视频保存到相册中?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)