mirror of
https://github.com/VKCOM/vk-ios-sdk.git
synced 2024-09-11 06:45:37 +03:00
Add cancel button on ‘error while posting’ alert
This commit is contained in:
parent
79e37f40ae
commit
7c4cc6e56b
@ -1012,6 +1012,8 @@ static const CGFloat kAttachmentsViewSize = 100.0f;
|
||||
[[[UIAlertView alloc] initWithTitle:nil message:VKLocalizedString(@"ErrorWhilePosting") delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
|
||||
#else
|
||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:VKLocalizedString(@"ErrorWhilePosting") preferredStyle:UIAlertControllerStyleAlert];
|
||||
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil];
|
||||
[alert addAction:cancelAction];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
#endif
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user