func storeImage(){
if let tempCodeImage = codeImage{
UIImageWriteToSavedPhotosAlbum(tempCodeImage, self, #selector(self.saveImage(_:didFinishSavingWithError:contextInfo:)), nil)
}else{
dismissCodeView()
SVProgressHUD.showImage(nil, status: "保存失败")
}
}
func saveImage(image:UIImage,didFinishSavingWithError error : NSError?,contextInfo : AnyObject){
dismissCodeView()
if error != nil{
echo("保存-图片-xxx-失败")
SVProgressHUD.showImage(nil, status: "保存失败")
return
}
SVProgressHUD.showImage(nil, status: "保存成功")
echo("保存-图片-vvv-成功")
}