views:

20

answers:

1

Hi,

I am not sure how should i get corresponding URLConnection response data , if i use more than one URLConnection. Please help me out, i need to use more than one URLConnection?

Regards Sri

+1  A: 

Every callback you get has the URLConnection as its first parameter, for example

- (void)connectionDidFinishLoading:(NSURLConnection *)connection

So you always know what connection the data belongs to.

Eiko
Thanks Eiko, how should i access Request object using Connection, Can i have sample code.
sri
I don't think you can access the request object from the connection, so you should store this when instantiating the connection.
Eiko