Swift中注册项目的解析错误



Error>>>函数信号'(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.
        }
    }
}

无论在哪里定义这个完成处理程序,它似乎都会返回:(成功:Bool,错误:NSError!)。

尝试删除"!"Bool 之后

最新更新