In iOs I navigate (pushed) with a navigation controller, and in the viewDidLoad launch a request. This request take might take a long time, and I’d like the users will be able to go back if they won’t want wait for the request.
The problem it’s that the back button added in the navigation bar seems to be blocked until de request finishes. The button remember the user interaction and when the request finishes go back automatically.
The request has a delegate method for the response and when the app enters on that method the button wake up and go back.
If I touch during a request the touch/click effect don’t appear on the button, and it don’t either at the end of the request. When I wait until the end, the button had the normal effect for a touched/clicked button.
For that you can enable the button property like this.
also use this