heightForRowAtIndexPath

heightForRowAtIndexPath

heightForRowAtIndexPath em>在显示任何行之前的表视图的单元格。But heightForRowAtIndexPath is called for all cells of the table view before any row is displayed.因此,您不应该从表格视图单元格中获取文本以计算 heightForRowAtIndexPath 。您应该从数据源获取文本。As a consequence, you should not get the text from the table view cells to compute the height in heightForRowAtIndexPath. You should get the text from your data source instead. 这篇关于iOS中的EXC_BAD_ACCESS为heightForRowAtIndexPath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-19 00:37