Define UIAlertViewController once and use it in different classes in OBJECTIVE - C : This might be a very basic question but yet i want to know a way out for this problem. It would be great to find any kind of help.

    //Modal.h
    
    -(void)errorAlert : (NSString *)title : (NSString *)desc : (NSString *)buttonTitle;
    
    
    //Modal.m
    
    -(void)errorAlert: (NSString *)title : (NSString *)desc : (NSString *)buttonTitle{
        
        alert = [UIAlertController alertControllerWithTitle:title message:desc preferredStyle:UIAlertControllerStyleAlert];
        
        UIAlertAction *ok = [UIAlertAction actionWithTitle:buttonTitle style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
            
            
            
        }];
        
        [alert addAction:ok];
        
        [self presentViewController:alert animated:YES completion:nil];
        
    }
    
    
Now i want to use this `errorAlert` in other classes so that i don't have to write the validation for alert again
    
    //Login.m
    
    
    #import "Modal.m"
    
    @property (strong, nonatomic) Modal *modal;
    
    
    -(void)viewDidLoad{
    
      _modal = [[Modal alloc] init];
    
    }
    
    


    //MARK: Submit Clicked
    
    - (IBAction)submitClicked:(UIButton *)sender {
    
    
        // I want to use that method here.
    
    }

Please suggest me a way out so that i can optimise my code according to this format 
