浏览代码

VLCSettingsController: Set cell height to UITableViewAutomaticDimension

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

Closes #672
Andy Woerner 5 年之前
父节点
当前提交
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
 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
 {
     return nil;
     return nil;