xcode - Parse/Swift getObjectInBackgroundWithId query not working -


i trying run query object in background id when run method query.getobjectinbackgroundwithid , getting error message:

"cannot invoke 'getobjectinbackgroundwithid' argument list of type (string, block: (pfobject!,nserror?) -> void" 

the same thing happens when use user.signupinbackgroundwithblock i'm thinking maybe xcode updated of features while using 'block's , maybe syntax different? ideas?

here's snippet of code:

http://imgur.com/1cvfhbu

yes!!! thank you!

the new sample code getobject is:

query.getobjectinbackgroundwithid("oaq79bhv53") {         (gamescore: pfobject?, error: nserror?) -> void in         if error == nil && gamescore != nil {             println(gamescore)         } else {             println("error")         }     } 

Comments

Popular posts from this blog

ubuntu - How to disable Kernel Module Signing in linux -

java - Ebean enhancement ignores a model -

How to combine associative arrays in bash? -