到目前爲止,我有問題的工作與塊這樣的:解析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