¡@

Home 

2014/10/15 ¤U¤È 10:08:35

iphone Programming Glossary: executeasynchttppost

iPhone: Handle two(or multiple) responses for two requests in the same delegate

http://stackoverflow.com/questions/9237842/iphone-handle-twoor-multiple-responses-for-two-requests-in-the-same-delegate

to achieve this I'm developing in iOS 5 SDK. UPDATED Class A serverconns setDelegate self connection serverconns executeAsyncHttpPost firstjsonrequest serverconns setDelegate self connection serverconns executeAsyncHttpPost secondjsonrequest void connection.. self connection serverconns executeAsyncHttpPost firstjsonrequest serverconns setDelegate self connection serverconns executeAsyncHttpPost secondjsonrequest void connection NSURLConnection connection didReceiveResponse NSURLResponse response void connection NSURLConnection.. FOR TWO REQUEST in the same Delegate if responseData doing something Class B ServerConnection NSURLConnection executeAsyncHttpPost id jsonParams NSString urlstr NSString stringWithFormat @ @ baseURL urlstr urlstr stringByAppendingFormat method NSURL pUrl..