Просмотр исходного кода

VLCSettingsController: Set cell height to UITableViewAutomaticDimension

This will allow dynamic cell resizing height for verbose languages like german

Closes #672
Andy Woerner 5 лет назад
Родитель
Сommit
05016600e3
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      Sources/VLCSettingsController.m

+ 5 - 0
Sources/VLCSettingsController.m

@@ -223,6 +223,11 @@ NSString * const kVLCSectionTableHeaderViewIdentifier = @"VLCSectionTableHeaderV
     }
 }
 
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+    return UITableViewAutomaticDimension;
+}
+
 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
     return nil;