到目前为止,我有问题的工作与块这样的:解析SDK方法不是在Xcode 6.3 Beta版
user.signUpInBackgroundWithBlock {
(succeeded: Bool!, error: NSError!) -> Void in
if error == nil {
println("success")
} else {
println("\(error)");
// Show the errorString somewhere and let the user try again.
}
}
当我添加到Xcode的这个我得到这个:
Cannot invoke 'signUpInBackgroundWithBlock' with an argument list of type '((Bool!, NSError!) -> Void)'
当我运行这个代码在Xcode 6.3(非测试版)中工作正常。但在测试版中,它失败了,不会让我建立。任何想法,如果这将被清除,或者如果有一个不同的实现,我可以使用。我曾尝试使用signUpInBackgroundWithTarget,但我只是无法正确访问错误,如果收到。
有什么特别的,我需要做升级到1.7.1?我删除了1.7.0,并在1.7.1中拖动,我仍然得到相同的错误 – 2015-04-04 20:57:45
不......它在发行说明中说它应该修复你的问题,所以它可能是东西的东西 – nick9999 2015-04-04 20:58:33
好吧,我可以尝试从头开始一个新项目,看看我是否能够得到它。不过谢谢。 – 2015-04-04 20:59:18