/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
iOS/SharedCode/RobloxAlert.mm
41 строка
2 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#import "RobloxAlert.h" #import <UIKit/UIKit.h> @implementation RobloxAlert +(void) RobloxAlertWithMessage:(NSString*) message { dispatch_async(dispatch_get_main_queue(),^{ /* open an alert with an OK button */ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"RobloxWord", @"") message:message delegate:nil cancelButtonTitle:NSLocalizedString(@"OkWord", nil) otherButtonTitles: nil]; [alert show]; }); } +(void) RobloxAlertWithMessageAndDelegate:(NSString*) message Delegate:(id) delegate { dispatch_async(dispatch_get_main_queue(),^{ /* open an alert with OK and Cancel buttons */ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"RobloxWord", @"") message:message delegate:delegate cancelButtonTitle:NSLocalizedString(@"CancelWord", nil) otherButtonTitles:NSLocalizedString(@"OkWord", nil), nil]; [alert show]; }); } +(void) RobloxOKAlertWithMessageAndDelegate:(NSString*) message Delegate:(id) delegate { dispatch_async(dispatch_get_main_queue(),^{ /* open an alert with an OK button */ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"RobloxWord", @"") message:message delegate:delegate cancelButtonTitle:NSLocalizedString(@"OkWord", nil) otherButtonTitles: nil]; [alert show]; }); } @end