Fix compiling

This commit is contained in:
arichornlover 2024-04-15 23:52:06 -05:00 committed by GitHub
parent 63ae617fbd
commit c8f16a2ec8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,10 +116,10 @@
- (void)showAlertWithTitle:(NSString *)title message:(NSString *)message {
dispatch_async(dispatch_get_main_queue(), ^{
YTAlertView *alert = [[YTAlertView alloc] init];
alert.title = title;
alert.subtitle = message;
[alert show];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:okAction];
[self presentViewController:alert animated:YES completion:nil];
});
}