Explorar o código

library view: hide metadata label when orientation changing, if the cell is expended

Pierre SAGASPE %!s(int64=9) %!d(string=hai) anos
pai
achega
b4dc90c100
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      Sources/VLCLibraryViewController.m

+ 8 - 0
Sources/VLCLibraryViewController.m

@@ -1511,6 +1511,14 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
 
     if (!_usingTableViewToShowData)
         [self.collectionView.collectionViewLayout invalidateLayout];
+    else {
+        NSArray *visibleCells = [self.tableView visibleCells];
+        NSUInteger cellCount = visibleCells.count;
+        for (NSUInteger x = 0; x < cellCount; x++) {
+            if ([visibleCells[x] isExpanded])
+                [visibleCells[x] metaDataLabel].hidden = YES;
+        }
+    }
 }
 
 #pragma mark - Search Display Controller Delegate