فهرست منبع

iOS: Fix strange UIAlertAction behaviour on iPads without title

With title setted to nil, the UIAlertAction were misplaced.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 سال پیش
والد
کامیت
b42605c763
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Sources/VLCLibraryViewController.m

+ 1 - 1
Sources/VLCLibraryViewController.m

@@ -1418,7 +1418,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
         [invalidSelection addAction:doneAction];
         [self presentViewController:invalidSelection animated:YES completion:nil];
     } else {
-        UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
+        UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"DELETE_TITLE", nil) message:nil preferredStyle:UIAlertControllerStyleActionSheet];
         UIAlertAction *deleteAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"BUTTON_DELETE", nil) style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
             if (_deleteFromTableView) {
                 @synchronized (_foundMedia) {