/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
iphone/Maps/Classes/CustomAlert/LocationNotFoundAlert/MWMLocationNotFoundAlert.mm
29 строк
991 B
Aleksey Belouosv
[iOS] [refactoring] place page UI
27 дек 2019, 14:58
27 дек 2019, 14:58
b763eb5
Код
Авторство
О чём код?
#import "MWMLocationNotFoundAlert.h" #import "MWMDefaultAlert_Protected.h" #import "MWMLocationManager.h" #import "MWMLocationObserver.h" @interface MWMLocationNotFoundAlert ()<MWMLocationObserver> @end @implementation MWMLocationNotFoundAlert + (instancetype)alertWithOkBlock:(MWMVoidBlock)okBlock { MWMLocationNotFoundAlert * alert = [self defaultAlertWithTitle:L(@"current_location_unknown_title") message:L(@"current_location_unknown_message") rightButtonTitle:L(@"current_location_unknown_continue_button") leftButtonTitle:L(@"current_location_unknown_stop_button") rightButtonAction:okBlock statisticsEvent:@"Location Not Found Alert"]; [alert setNeedsCloseAlertAfterEnterBackground]; [MWMLocationManager addObserver:alert]; return alert; } #pragma mark - MWMLocationObserver - (void)onLocationUpdate:(CLLocation *)location { [self close:self.rightButtonAction]; } @end