I have a void method called 'startTask'.
On button click, I launch 'startTask' in the background as follows:
[self performSelectorInBackground:@selector(startTask) withObject:nil];
I want to cancel this process when a button is clicked, I cannot however figure out how to do this, can anyone please help?
Thanks in advance