看起来很简单,因为创建一个NSURLConnection
我通常这样做:
NSURL *theURL = [NSURL URLWithString:urlString];
NSURLRequest *req = [NSURLRequest requestWithURL:theURL];
NSURLConnection *connection = [NSURLConnection connectionWithRequest:req delegate:self];
但是我怎样才能在委托方法中取回 URL?我自己没有挂在他们身上(我一次运行许多连接,所以这变得有点混乱)。似乎我应该能够从连接中获取 URL。
我错过了什么吗?