So far, I have had problems with such blocks:
user.signUpInBackgroundWithBlock { (succeeded: Bool!, error: NSError!) -> Void in if error == nil { println("success") } else { println("\(error)");
When I add this to Xcode, I get the following:
Cannot invoke 'signUpInBackgroundWithBlock' with an argument list of type '((Bool!, NSError!) -> Void)'
When I run this code in Xcode 6.3 (not beta), it works fine. But in the beta, it fails and won't let me build. Any ideas if this will be clarified, or if there is another implementation that I could use. Ive tried to use only signUpInBackgroundWithTarget, but Im just could not correctly access the error if it was received.
Jason storey
source share