Im trying to figure out how to stop performing a selector
I can start one by doing this
[self performSelector:@selector(vibe)];
But im trying to figure out how i can stop one.
Any help would be very much appreciated..Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
performSelector:method is equivalent to sending a selector message directly to the receiver, so it cannot be canceled. I.e., these two lines have the same effect:The
cancelPreviousPerformRequestsWithTarget:(and similar) methods can only cancel selector messages which are not performed immediately. You can send such a message via theperformSelector:withObject:afterDelay:(and similar) methods.See Table 3-2 of the Run Loop Management section of Apple’s Thread Programming Guide for more information.