Here is my objective c method call that I need to convert to a swift call.
It's complaining that "Could not find an overload for logInWithUsernameInBackground that accepts the supplied arguments.
What am I doing wrong?
Objective C Method Decleration
typedef void (^PFUserResultBlock)(PFUser *user, NSError *error); + (void)logInWithUsernameInBackground:(NSString *)username password:(NSString *)password block:(PFUserResultBlock)block; Objective C Call
[User logInWithUsernameInBackground:@"" password:@"" block:^(PFUser *user, NSError *error) { NSLog(@"test"); }]; Swift
User.logInWithUsernameInBackground("", password: "", block: { (user: PFUser?, error: NSError) -> Void in NSLog("test") } )
{ (user, error) in NSLog("test")}