iPhone ASIHTTP - Distinguishing between API calls?

后端 未结 4 1445
故里飘歌
故里飘歌 2021-02-06 14:07

I currently have a view controller that implements ASIHTTP for handling API calls.

My view controller fires 2 separate calls. I need to be able to distinguish between t

4条回答
  •  粉色の甜心
    2021-02-06 14:30

    You can inspect the request parameter passed to your requestFinished:(ASIHTTPRequest *)request method to differentiate between the two calls.

    For example, if the two calls have different URLs, you can inspect the request.url property to differentiate between the two requests.

提交回复
热议问题