开发者

Quick one: Finding a specific allocated object in my class

I feel stupid for asking this. But in a class, I alloc an ASIHTTPRequest. This is done in the implementation alone, not the interface, since it's an autoreleased object.

I am not sure sure how to cancel this request. I have the following:

for (ASIHTTPRequest *request in ???????) {
     [request clearDelegatesAndCancel];
}

Basically, I a开发者_JAVA技巧m not sure where and what in my class to look for to find the request that's currently running?

Thanks


You need to store your request somewhere, i.e. in an ivar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜