开发者

How can you stop a running ASIHTTPNetworkQueue?

开发者 https://www.devze.com 2023-03-12 07:45 出处:网络
I am wondering how you can stop a running ASIHTT开发者_如何学运维PNetworkQueue ? Is it somehow possible? Because when I dismiss my view where the network queue is set up, my app crashes.According to t

I am wondering how you can stop a running ASIHTT开发者_如何学运维PNetworkQueue ?

Is it somehow possible? Because when I dismiss my view where the network queue is set up, my app crashes.


According to the documentation you would use

[queue cancelAllOperations];

I'd suggest though that you may wish to consider placing all your core networking in a single shared data model class as that way you don't have problems with view controllers coming and going.

0

精彩评论

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

关注公众号