Hello,
I am trying to understand using NSThread.
I have made a sample application, where a button is provided to start the worker thread. I update label text in worker thread (not sure if this is the correct way to do this) and I want to stop the thread forcefully.
My stop thread is not working correctly, sometimes it is giving exception as well.
What is the correct way to stop a thread in between.
Attached zip of the code.
I am trying to understand using NSThread.
I have made a sample application, where a button is provided to start the worker thread. I update label text in worker thread (not sure if this is the correct way to do this) and I want to stop the thread forcefully.
My stop thread is not working correctly, sometimes it is giving exception as well.
What is the correct way to stop a thread in between.
Attached zip of the code.