Swift - TableViewCell高度動態計算

在iOS8,咱們爲了容許cell自動計算高度,必須注意如下幾點:javascript 1:當建立UITableViewCell的時候使用Auto Layout佈局子視圖,添加對應的約束( leading, top, trailing and bottom constraints)java 2:設置tableView的rowHeight爲UITableViewAutomaticDimensionid
相關文章
相關標籤/搜索