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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -