             btn.transform = CGAffineTransformMakeScale(0.01, 0.01)
             }, completion: { (finished : Bool) -> Void in
                 btn.removeFromSuperview();
+                self.saveState = .Idle
         })
     }
     

import AudioToolbox
import AssetsLibrary

class ViewController: UIViewController, UIScrollViewDelegate, UIGestureRecognizerDelegate {
    
    let kInfoButtonSideLength : CGFloat = 44.0;
    let kInfoButtonMargin : CGFloat = 10.0;
    
    @IBOutlet weak var scrollView : UIScrollView!
    @IBOutlet weak var gradientView : GradientView!

            }
            
            alertController?.addAction(UIAlertAction(title: NSLocalizedString("close", comment: ""), style: .Cancel, handler: nil))
            self.presentViewController(alertController, animated: true, completion: { () -> Void in
                self.saveState = .Idle
            })
            
        } else {
            self.saveState = .Saved
            self.showSaveIndicator()
        }
    }
    
