how to exit thread while its in running mode...when i use NSThread exit my app get hanged... Can any one help me ? what could i use here to exit thread or close thread
Thanks Its my first post here.
how to exit thread while its in running mode...when i use NSThread exit my app get hanged... Can any one help me ? what could i use here to exit thread or close thread
Thanks Its my first post here.
The routine you're looking for is return
.
The thread will terminate when the function that you launched it with finishes. You don't need to terminate the NSThread; it will handle that itself. You just need to return from the function call.