
@H_502_8@
@H_502_8@@H_502_8@解决方法 你提供了完成选择器吗?
@H_502_8@
@H_502_8@
...UIImageWritetoSavedPhotosAlbum(imageVIEw.image!,self,"image:dIDFinishSavingWithError:contextInfo:",nil) ...func image(image: UIImage,dIDFinishSavingWithError error: NSError?,contextInfo:UnsafePointer<VoID>) { if error == nil { let ac = UIAlertController(Title: "Saved!",message: "Your altered image has been saved to your photos.",preferredStyle: .Alert) ac.addAction(UIAlertAction(Title: "OK",style: .Default,handler: nil)) presentVIEwController(ac,animated: true,completion: nil) } else { let ac = UIAlertController(Title: "Save error",message: error?.localizedDescription,completion: nil) }} 总结 以上是内存溢出为你收集整理的ios – 使用Swift 2.0将图像保存到照片库全部内容,希望文章能够帮你解决ios – 使用Swift 2.0将图像保存到照片库所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)