turbo
turbo

Reputation: 589

Background request with delegate in iOS

In my app i am uploading image(to AWS S3 server) in background with delegates. I do not want to wait till it reaches delegates callback methods. So after 1 second I go back to previous screen with [popToViewController:myPreviosuScreenController].

Problem is when request is complete it doesn't find the delegates. And throws error. How to handle this scenario?

Upvotes: 1

Views: 94

Answers (1)

Carl Veazey
Carl Veazey

Reputation: 18363

Make the request's delegate an object that doesn't get deallocated when you pop the view controller.

Upvotes: 1

Related Questions