Title / Description
Code - (void)registerUserWithEmail:(NSString *)email password:(NSString *)password withSuccess:(void (^)(id object))success failure:(void (^)(failure failureType))failure { NSDictionary *parameters = [[NSDictionary dictionaryWithObjectsAndKeys: email, @"email", password, @"password", nil]; AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; [manager POST:url parameters:parameters success:^(AFHTTPRequestOperation *operation, id response) { success(user); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { }]; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code