Making GET and POST Requests from an iPhone Application - Clarification Needed

后端 未结 3 1421
半阙折子戏
半阙折子戏 2020-12-29 16:13

I\'m following along with this useful looking answer to my question.

It seems to be working, but here are two questions I have:

  1. How do I detect an HTTP
3条回答
  •  误落风尘
    2020-12-29 17:04

    Answering the question in your "update"...

    Immediately autorelease the NSURLConnection. The connection object is retained by the NSRunLoop (to which it adds itself automatically unless you use the startImmediately:NO constructor). It will get automatically removed from run loop (and hence dealloc'd) on error or finish.

提交回复
热议问题