If you are using swift 1.2 (Xcode 6.3), you need to call the function:
var data = Query.findObjectsInBackgroundWithBlock({(objects:[AnyObject]?, error:NSError?) -> Void in
})
And if you use swift 1.1 (Xcode 6.1, 6.2), you need to call the function:
var data = Query.findObjectsInBackgroundWithBlock({(objects:[AnyObject]?, error:NSError!) -> Void in
})
This is different from Quick Update 1.2, which has changes using options.
source
share