swift2 - What's the Swift 2.0 equivalent to parse.com's signUpInBackgroundWithBlock:()? -


i got follow error when attempting build parse.com project via xcode 7.0/swift 2.0:

enter image description here

there work around this?
what's swift 2.0 equiv.?

you can either:

user.signupinbackgroundwithblock { (succeeded: objcbool, error: nserror?) -> void in     // } 

or

user.signupinbackgroundwithblock { succeeded, error in     // } 

--

note, xcode can show appropriate types. example, if start type , let code completion show me method, see like:

enter image description here

if hit enter , select block: pfbooleanresultblock? , hit enter again, i'll see:

enter image description here

that shows me precisely types 2 parameters are.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -