How do I support self sizing cells on iOS7?

前端 未结 2 522
眼角桃花
眼角桃花 2020-12-29 09:23

With the release of iOS8 I have designed my table view with cells taking advantage of self sizing cells. But I need my tables to work in iOS7 as well. How do I do that? Is t

2条回答
  •  庸人自扰
    2020-12-29 09:35

    For iOS versions older than 8.0, you can always write the usual heightForRowAtIndexPath method where you create a cell, run an auto layout pass on it and then return the actual height.

提交回复
热议问题