ILHTTPClient 介绍
ILHTTPClient 是一个非常简单的 AFNetworking
库的封装,还带有一个动画的 HUD 状态显示。
示例代码:
[client getPath:path parameters:params loadingText:@"Loading" successtext:@"Completed!" success:^(AFHTTPRequestOperation *operation, Nsstring *response) { id JSON = [response JSONValue]; //If JSON is returned /* Do something with this data */ } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@", error); /* Handle the error here */ }];