Is it possible to have different STATIC tableviewcell heights for different size classes?

时间:2015-05-24 21:15:00

标签: ios uitableview size-classes

This app uses static cells extensively. I've posted other questions around this but did not specify that I am using static cells. The code is posted in Different table view cell row heights for different size classes?

In summary here is the situation: I am using custom UITableView classes to load data in the UITextViews in UITextViewCells. The app is adaptive and there appears to be no way to change the height of the tableviewcells for different size classes. Is it possible to do this for static cells?

1 个答案:

答案 0 :(得分:0)

我不认为可以使用具有静态表格视图的自定义单元格。我建议你切换到使用动态原型,然后你可以使用我在回答你的另一个问题时给出的技术(使用自调整单元格并在故事板中为不同大小的类设置不同的字体)。静态表格视图单元格无法做任何事情,您也可以使用动态表单元格进行操作。您仍然可以在故事板中创建所需的所有单元格,然后根据cellForRowAtIndexPath:indexPath中将正确的单元格出列。

相关问题