Present “Controller” from another Class in Objective-C
问题 How does one present a UIAlertController from another class? I want to know how can you capture the action of an "ok" button in a UIAlertController that was created in Class B but presented in Class A. This is how I call the method that created the Alert on class "ErrorHandler" from ClassA: ErrorHandler *handler = [[ErrorHandler alloc] init]; [self presentViewController:[handler alertWithInternetErrorCode] animated:YES completion:nil]; And this is the implementation of