IOS: dynamic height with a custom uitableviewcell

后端 未结 3 1849
攒了一身酷
攒了一身酷 2020-12-30 09:29

I am new at ios development and this is my problem thus far. I am able to dynamically calculate the height of a custom cell via the delegate \"heightForRowAtIndexPath\". S

3条回答
  •  抹茶落季
    2020-12-30 09:56

    There is a good tutorial that walks you through the process of determining the height that is required to fit your text and sizing the cell height appropriately.

    the tutorial is available here: http://www.raddonline.com/blogs/geek-journal/iphone-sdk-resizing-a-uitableviewcell-to-hold-variable-amounts-of-text/

    I have not attempted the methods in the tutorial myself, but it looks to be pretty thorough.

    Hope this helps!

提交回复
热议问题