background image

NSMutableDictionary*  dict = self.listData[indexPath.row];

post = [NSString stringWithFormat:@"email=%@&type=%@&action=%@&id=%@",

@"<你的 iosbook1.com 用户邮箱>",@"JSON",@"remove",[dict objectForKey:@"ID"]];

}

NSData *postData  = [post dataUsingEncoding:NSUTF8StringEncoding];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];

[request setHTTPMethod:@"POST"];

[request setHTTPBody:postData];

NSURLConnection *connection = [[NSURLConnection alloc]

initWithRequest:request delegate:self];

if (connection) {

_datas = [NSMutableData new];

}

}

-(void) connection:(NSURLConnection *)connection didFailWithError: (NSError *)error {

NSLog(@”%@”,[error localizedDescription]);

[MBProgressHUD hideHUDForView:self.view animated:YES];

}

 

- (void) connectionDidFinishLoading: (NSURLConnection*) connection {

NSLog(@”请求完成…”);