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:
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:
if hit enter , select block: pfbooleanresultblock?
, hit enter again, i'll see:
that shows me precisely types 2 parameters are.
Comments
Post a Comment