     lazy var closeBtn : UIButton = {
         return self.createButton("关闭")
         }()
+    /// 保存按钮
     lazy var saveBtn : UIButton = {
         return self.createButton("保存")
     }()
+    /// 保存按钮的提示视图
+    lazy var statusView: UILabel = {
+        let label = UILabel(frame: CGRectMake(0, 0, 90, 60))
+        label.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.4)
+        label.textColor = UIColor.whiteColor()
+        label.center = self.view.center
+        label.textAlignment = NSTextAlignment.Center
+        label.layer.cornerRadius = 10
+        label.layer.masksToBounds = true
+        return label
+    }()
+    
     /// 浏览的位置
     var index : Int?
     /// 所有frame对于主视图的位置

    var smallURL: NSURL
    // 大图地址
    var largeURL: NSURL
    //内部方法
    /// 初始化方法
    init(smallURL : NSURL, largeURL : NSURL){

    /// 图像保存的回调方法
    func image(image: UIImage, didFinishSavingWithError error: NSError?, contextInfo: AnyObject){
        if error != nil {
            // 展示失败
            self.view.addSubview(self.statusView)
            self.statusView.text = "保存失败"
            // 展示动画
            UIView.animateWithDuration(0.5, animations: { () -> Void in
                self.statusView.alpha = 1
                }) { (_) -> Void in
                    UIView.animateWithDuration(0.5, delay: 0.5, options: UIViewAnimationOptions.allZeros, animations: { () -> Void in
                        self.statusView.alpha = 0
                        }, completion: { (_) -> Void in
                            self.statusView.removeFromSuperview()
                            self.statusView.alpha = 1
                    })
            }
            return
        }
        // 展示成功
        var index = calculateIndex()
        let photo = self.photoes![index]
        photo.isSaved = true
        checkSaveBtn()
        self.statusView.alpha = 0
        self.view.addSubview(self.statusView)
        self.statusView.text = "保存成功"
        
        // 展示动画
        UIView.animateWithDuration(0.2, animations: { () -> Void in
            self.statusView.alpha = 1
        }) { (_) -> Void in
            UIView.animateWithDuration(0.5, delay: 0.5, options: UIViewAnimationOptions.allZeros, animations: { () -> Void in
                self.statusView.alpha = 0
            }, completion: { (_) -> Void in
                self.statusView.removeFromSuperview()
                self.statusView.alpha = 1
            })
        }
        
    }
    func didDismiss(){
        dismissViewControllerAnimated(false, completion: nil)
