I am trying to post a URL to the server using the Asynchronous type like
_urlConn = [[NSURLConnection alloc] initWithRequest:_urlReq delegate: self];
I getting proper response, and I am handling the response well using the delegate methods such as didRecieveResponse and connectionDidFinishLoading. The flow works fine as of now. I am facing a new problem which I couldn't figure it out clearly.
Lets say I am having a button which will post the same URL.
- I am clicking button to post the url
- When the button is clcked again(within one/two sec), the URL is not posted (I have written logic).
- The URL is posted(For the fist button click) and I didn't received any response till now, now I am trying to click the button again which will post the URL now.
My app getting exactly right here. Is it because I am using the _ReleaseObject(_urlConn);
in the connectionDidFinishLoading
method ????