call NSUrlSessionConnection delegate methods when viewcontroller is deallocated

40 views Asked by At

I have a situation like I'm calling a web service to GET some information from server. Immediately the viewcontroller is navigated to another viewcontroller. When the service call responds with some data, the Viewcontroller is not alive. So, How to handle this situation. Please help.

1

There are 1 answers

0
Mr.Fingers On

If you need to store data fetched in one VC, that dealocating, you can try create some manager,as singleton, which will fetch data, and the you can use it in another VC, when its will be ready(fetched)