Selaa lähdekoodia

cloud services: fix iCloud Drive appearance on iPad in landscape mode

Felix Paul Kühne 10 vuotta sitten
vanhempi
commit
0a96d6d264
1 muutettua tiedostoa jossa 5 lisäystä ja 6 poistoa
  1. 5 6
      Sources/VLCCloudServicesTableViewController.m

+ 5 - 6
Sources/VLCCloudServicesTableViewController.m

@@ -145,7 +145,7 @@
         default:
             break;
     }
-//    cell.icon.contentMode = UIViewContentModeScaleAspectFit;
+
     return cell;
 }
 
@@ -155,12 +155,11 @@
 {
     // don't let select CLOUD_DRIVES menu item since there is no view controller to reveal
     if (indexPath.row == 4) {
-        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
-            [self.documentPickerController showDocumentMenuViewController:[self.tableView cellForRowAtIndexPath:indexPath]];
-        } else {
+        [tableView deselectRowAtIndexPath:indexPath animated:YES];
+        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
+            [self.documentPickerController showDocumentMenuViewController:[(VLCCloudServiceCell *)[self.tableView cellForRowAtIndexPath:indexPath] icon]];
+        else
             [self.documentPickerController showDocumentMenuViewController:nil];
-            [tableView deselectRowAtIndexPath:indexPath animated:YES];
-        }
 
         return nil;
     } else