mirror of
https://github.com/khanhduytran0/coruna.git
synced 2026-04-23 12:17:27 +02:00
31 lines
1.5 KiB
Objective-C
31 lines
1.5 KiB
Objective-C
@import UIKit;
|
|
|
|
int start(void) {
|
|
|
|
return 0;
|
|
}
|
|
int startl(void) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Hello, world!" message:nil preferredStyle:UIAlertControllerStyleAlert];
|
|
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
|
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:alert animated:YES completion:nil];
|
|
});
|
|
return 0;
|
|
}
|
|
int startm(void) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Hello, world!" message:nil preferredStyle:UIAlertControllerStyleAlert];
|
|
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
|
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:alert animated:YES completion:nil];
|
|
});
|
|
return 0;
|
|
}
|
|
int startr(void) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Hello, world!" message:nil preferredStyle:UIAlertControllerStyleAlert];
|
|
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
|
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:alert animated:YES completion:nil];
|
|
});
|
|
return 0;
|
|
}
|