cancelling queued performSelector:afterDelay calls

后端 未结 4 494
甜味超标
甜味超标 2020-12-22 23:29

does anybody know if it is possible to cancel already queued selector events from the event stack or timer stack (or whatever mechanism it is that is utilized by the API) wh

4条回答
  •  孤城傲影
    2020-12-23 00:06

    In order to cancel all previous perform requests, you may use :

    [NSObject cancelPreviousPerformRequestsWithTarget:self];   
    

提交回复
热议问题