Parse SDK methods not working in Xcode 6.3 Beta

前端 未结 5 1790
夕颜
夕颜 2021-01-12 13:39

So far I am having issues with blocks like this:

user.signUpInBackgroundWithBlock {
        (succeeded: Bool!, error: NSError!) -> Void in
        if erro         


        
5条回答
  •  遥遥无期
    2021-01-12 14:07

    be sure you are using SDK version 1.7.1, then removing the types from your closure should do the trick:

    user.signUpInBackgroundWithBlock { (succeeded, error) -> Void in
        if error == nil {
            println("success")
        } else {
            println("\(error)");
            // Show the errorString somewhere and let the user try again.
        }
    }
    

提交回复
热议问题