I am creating an alert using UIAlertController and I would like the alert to display on whichever view controller is currently being displayed. This application has about 30 different view controllers and I need the alert to display on whichever view is currently being displayed. Does anyone have a suggestion to do this in the easiest manner.
I am using NSTimer to call a function on one of the views every 30 seconds, looking for a response from a SOAP service. I would like to be able to know which view is currently in use and display the alert if there is a response from my SOAP service.