Reputation: 2115
I am having a confusion with threads.
Suppose I start a thread in a ViewController which is doing some heavy processing. If I pop the viewController while the thread is still in execution will the thread stop executing or whether it will continue its execution.
Upvotes: 0
Views: 73
Reputation: 25632
It will continue to run until it finishes or you make it stop. So you should either kill that thread at an appropriate point, or make sure that the thread doesn't access any stale objects.
Upvotes: 1