forked from organicmaps/organicmaps-tmp
[ios] Added not enough space alert.
This commit is contained in:
parent
a94e2d2f4d
commit
9a226eda51
6 changed files with 25 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
- (void)presentPedestrianToastAlert:(BOOL)isFirstLaunch;
|
||||
- (void)presentIncorrectFeauturePositionAlert;
|
||||
- (void)presentInternalErrorAlert;
|
||||
- (void)presentNotEnoughSpaceAlert;
|
||||
- (void)presentInvalidUserNameOrPasswordAlert;
|
||||
- (void)presentDisableAutoDownloadAlertWithOkBlock:(nonnull TMWMVoidBlock)okBlock;
|
||||
- (void)presentDownloaderNoConnectionAlertWithOkBlock:(nonnull TMWMVoidBlock)okBlock cancelBlock:(nonnull TMWMVoidBlock)cancelBlock;
|
||||
|
|
|
@ -89,6 +89,11 @@ static NSString * const kAlertControllerNibIdentifier = @"MWMAlertViewController
|
|||
[self displayAlert:[MWMAlert internalErrorAlert]];
|
||||
}
|
||||
|
||||
- (void)presentNotEnoughSpaceAlert
|
||||
{
|
||||
[self displayAlert:[MWMAlert notEnoughSpaceAlert]];
|
||||
}
|
||||
|
||||
- (void)presentInvalidUserNameOrPasswordAlert
|
||||
{
|
||||
[self displayAlert:[MWMAlert invalidUserNameOrPasswordAlert]];
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
+ (MWMAlert *)pedestrianToastShareAlert:(BOOL)isFirstLaunch;
|
||||
+ (MWMAlert *)incorrectFeauturePositionAlert;
|
||||
+ (MWMAlert *)internalErrorAlert;
|
||||
+ (MWMAlert *)notEnoughSpaceAlert;
|
||||
+ (MWMAlert *)invalidUserNameOrPasswordAlert;
|
||||
+ (MWMAlert *)point2PointAlertWithOkBlock:(TMWMVoidBlock)okBlock needToRebuild:(BOOL)needToRebuild;
|
||||
+ (MWMAlert *)disableAutoDownloadAlertWithOkBlock:(TMWMVoidBlock)okBlock;
|
||||
|
|
|
@ -122,6 +122,11 @@
|
|||
return [MWMDefaultAlert internalErrorAlert];
|
||||
}
|
||||
|
||||
+ (MWMAlert *)notEnoughSpaceAlert
|
||||
{
|
||||
return [MWMDefaultAlert notEnoughSpaceAlert];
|
||||
}
|
||||
|
||||
+ (MWMAlert *)invalidUserNameOrPasswordAlert
|
||||
{
|
||||
return [MWMDefaultAlert invalidUserNameOrPasswordAlert];
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
+ (instancetype)internalRoutingErrorAlert;
|
||||
+ (instancetype)incorrectFeauturePositionAlert;
|
||||
+ (instancetype)internalErrorAlert;
|
||||
+ (instancetype)notEnoughSpaceAlert;
|
||||
+ (instancetype)invalidUserNameOrPasswordAlert;
|
||||
+ (instancetype)noCurrentPositionAlert;
|
||||
+ (instancetype)pointsInDifferentMWMAlert;
|
||||
|
|
|
@ -168,6 +168,18 @@ static NSString * const kDefaultAlertNibName = @"MWMDefaultAlert";
|
|||
rightButtonAction:nil];
|
||||
}
|
||||
|
||||
+ (instancetype)notEnoughSpaceAlert
|
||||
{
|
||||
kStatisticsEvent = @"Not Enough Space Alert";
|
||||
MWMDefaultAlert * alert = [self defaultAlertWithTitle:@"migration_download_error_dialog"
|
||||
message:@"migration_no_space_message"
|
||||
rightButtonTitle:@"ok"
|
||||
leftButtonTitle:nil
|
||||
rightButtonAction:nil];
|
||||
[alert setNeedsCloseAlertAfterEnterBackground];
|
||||
return alert;
|
||||
}
|
||||
|
||||
+ (instancetype)invalidUserNameOrPasswordAlert
|
||||
{
|
||||
kStatisticsEvent = @"Invalid User Name or Password Alert";
|
||||
|
|
Loading…
Add table
Reference in a new issue