Forráskód Böngészése

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

Pierre SAGASPE 9 éve
szülő
commit
b4dc90c100
1 módosított fájl, 8 hozzáadás és 0 törlés
  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