How can I kill a thread created by performSelectorInBackground:withObject: from the main thread? I need to force termination of freezing threads.
How can I kill a thread created by performSelectorInBackground:withObject: from the main thread? I
Share
You cannot kill background threads from the main thread, the method that is executing in a background thread has to return for the thread to end.
Your actual problem seems to be that your background thread is freezing, you should solve that instead of trying to work around it.