Im trying to load Parse data and set in a array as result, i check a few questions but many codes are outdate so I'm stuck, how i can set the query in a array? heres the code:
var array [String] = []
func loadData() {
var query = PFQuery(className: "ParseClass")
query.orderByAscending("column")
query.findObjectsInBackgroundWithBlock { (objects: [AnyObject]?, error: NSError?) -> Void in
if error == nil {
self.array.append( objects! )// error here
} else {
println( error?.userInfo )
}
}
}