Any idea why this isn't working?
[self performSelector:@selector(foo:) withObject:argObj afterDelay:5.0];
I am calling this from within a class method, and it is calling another class method for the same class (hence 'self'). Is this valid?
I placed a breakpoint in foo, but it is not called. What's going on here?
Do you have a run loop running on the thread from which you invoke the perform:afterDelay:
? If not, it won't run.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With