我熟悉使用以下方法。我知道在使用以下内容时,您至少需要实现所需的协议方法:
[NSURLConnection setConnection:[[NSURLConnection alloc] initWithRequest:request delegate:self]];
有人可以解释一些我在研究期间还没有得到答案的东西吗?
使用下面的异步方法调用时呢?是否有任何必需的协议方法需要从 NSURLConnection 实现?
谢谢
[NSURLConnection sendAsynchronousRequest:request
queue:queue
completionHandler:^(NSURLResponse *response,NSData *data,NSError *error)
{
//Handle response here
});