Reputation: 576
Error >>> function singatire '(bool!,NSError!) -? Void is not compatible with expected type.....
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.
}
}
}
Upvotes: 1
Views: 117
Reputation: 1941
Wherever this completion handler is defined, it seems to give back: (succeeded: Bool, error: NSError!).
try removing the '!' after Bool
Upvotes: 2