陈斌彬的技术博客

Stay foolish,stay hungry

利用 AFNetworking 自带 JSON 解析获取服务端 JSON 数据

服务端

img img

客户端

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager POST:@"http://192.168.66.144:81/jsonpage/WebForm1.aspx" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
    NSLog(@"JSON: %@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"Error: %@", error);
}];

img