| 1234567891011121314151617181920212223 |
- //
- // GlobalAlertV.m
- // AIIM
- //
- // Created by gan on 2025/6/25.
- //
- #import <Foundation/Foundation.h>
- #import "GlobalAlertV.h"
-
- @implementation GlobalAlertV
-
- + (void)showAlertWithTitle:(NSString *)title message:(NSString *)message {
- UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
- [alertController addAction:okAction];
-
- UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
- [rootViewController presentViewController:alertController animated:YES completion:nil];
- }
-
- @end
|