Reputation: 749
i wrote like: [self performSelectorInBackground:@selector(backgroundImageLoading) withObject:nil]; to load image background but know i need to stop this when i refresh the view but i don't have any idea how to do
Upvotes: 0
Views: 237
Reputation: 3616
The threads should not be forced to kill. look out the reasons here. It may help you to find the solution.
Upvotes: 0
Reputation: 17478
See NSOperation and NSOperationQueue.
Its also to do the process concurrently as like background thread. Here in NSOperation you have cancel method available to stop the operation.
Upvotes: 1