错误>>> 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.
}
}
}
答案 0 :(得分:2)
无论何处定义此完成处理程序,它似乎都会回馈: (成功:Bool,错误:NSError!)。
尝试删除'!' Bool之后