Now UIAlertContoller can only be called with ViewController And this causes some inconvenience. Suppose the response from the server, and they are usually a separate file NSObject , you need to display an error. I would like to process the error right after the server responds to ``
I would like to find a way to run UIAlertContoller from any file in the program.