 
 import UIKit
 import ChameleonFramework
+import Parse
 
 protocol ArticleDelegate {
     func editCanceled()

    
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}

    @IBAction func onAnOccasionButton(sender: AnyObject) {
        let selected = sender as! UIButton
        print(selected.currentTitle)
        print(occassionDictionary[selected.currentTitle!])
        occassionDictionary[selected.currentTitle!]! = !occassionDictionary[selected.currentTitle!]!
        if occassionDictionary[selected.currentTitle!]! {
            selected.backgroundColor = bgColorSelected
            selected.tintColor = bgColorUnselected
            article.occasion?.append(selected.currentTitle!)
        } else {
            selected.backgroundColor = bgColorUnselected
            selected.tintColor = bgColorSelected
            if let index = article.occasion?.indexOf(selected.currentTitle!) {
                article.occasion?.removeAtIndex(index)
            }
        }
    }
    
    @IBAction func onActionCamera(sender: AnyObject) {
        if UIImagePickerController.isSourceTypeAvailable(.Camera) {
            vc.sourceType = .Camera
