Github地址:
demo的Github地址:UITableViewCellHeightDemo
系統(tǒng)的cell自適應(yīng)高度的使用方法
首先我們需要把cell上的控件自上而下加好約束,如果對(duì)約束不熟悉的話建議看看下面這兩篇文章學(xué)習(xí)一下:
Auto Layout Tutorial in iOS 9 Part 1: Getting Started(http://www.raywenderlich.com/115440/auto-layout-tutorial-in-ios-9-part-1-getting-started-2)
導(dǎo)師地址:
http://bbs.520it.com/forum.php?mod=viewthread&tid=2794&page=&extra=#pid30294