我有一个自定义 UITableViewCell,用作 UITableView 的页脚。
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let cell = tableView.dequeueReusableCellWithIdentifier("footerCommentCell") as! FooterCommentTableViewCell
cell.footerIndex = section
cell.delegate = self
return cell
}
此页脚具有自动布局,如
http://joxi.ru/DrloGbpC4Eb3vA
1 - 视图 1 2 - 视图 2 3 - 视图 2 高度约束 ( view2Height
)
在初始化阶段view2Height
是 0,对于某些操作,我想将此约束常量更改为另一个值,例如 - 50,并将我的标题更改为。
有什么方法可以实现吗?