注册项目中Swift中的Parse错误

时间:2015-02-26 08:33:29

标签: swift parse-platform

错误>>> function singatire'(bool!,NSError!) - ? Void与预期的类型不兼容......

http://s15.postimg.org/geexdxwob/image.png

    user.signUpInBackgroundWithBlock {

        (succeeded: Bool!, error: NSError!) -> Void in
        if error == nil {
            // Hooray! Let them use the app now.
        } else {
            let errorString = error.userInfo["error"] as NSString
            // Show the errorString somewhere and let the user try again.
        }
    }
}

1 个答案:

答案 0 :(得分:2)

无论何处定义此完成处理程序,它似乎都会回馈: (成功:Bool,错误:NSError!)。

尝试删除'!' Bool之后