I am receiving the following errors [1]"Cannot subscript a value of type '[AnyObject]' with an index of type 'String'. [2]Cannot invoke 'saveInBackgroundWithBlock' with an argument list of type '((Bool, NSError?) -> Void)'. I am attempting to save an integer to an existing parse.com column.
func heatUp(){
let findDataParse = PFQuery(className:"flyerDataFetch")
findDataParse.whereKey("objectId", equalTo: objectID)
findDataParse.findObjectsInBackgroundWithBlock{
(ObjectHolder: [AnyObject]?, error: NSError?) -> Void in
if (error == nil) {
//[1] First error
if let ObjectHolder = ObjectHolder {
ObjectHolder["attention"] = self.count
}
//[2] Second error
ObjectHolder.saveInBackgroundWithBlock {
(success: Bool, error: NSError?) -> Void in
if (success){
println("successful save")
}
}
}
}
}