How to stop an NSInvocationOperation?

前端 未结 4 2060
情歌与酒
情歌与酒 2020-12-16 03:06

I have an NSInvocationOperation that would download and parse a series of NSXMLDocuments in the background to my UI responsive.

My attempt at stopping the Invocation

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 03:26

    The post above is great, but to more directly answer the original question: it appears that you can't stop NSInvocationOperation object because it doesn't support cancellations. You're going to have to subclass it.

提交回复
热议问题