I would like to use AFNetworking to perform periodical JSON requests to my server (updating the user's profile and checking for changes).
What if the background job is running but the user pushed the "Back" button or anything that makes the ViewController to be destroyed? How can I manage this? I mean, in that case I would like to ignore the result and perform it again when the user returns to the View
Thank you
PS: I don't want a full working code. I just would like to know how can I know, from a background download job (ran using AFNetworking) if the ViewController has been destroyed or not.