代码:
func saveAction(sender:AnyObject?){
UIImageWriteToSavedPhotosAlbum(imageView.image, self,"image:didFinishSavingWithError:contextInfo:", nil)
}
func image(image: UIImage, didFinishSavingWithError: NSError?, contextInfo: AnyObject) {
if didFinishSavingWithError != nil {
print ("错误")
return
}
}