I have a custom UITableViewCell that I am using as footer for UITableView.
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let cell = tableView.dequeueReusableCellWithIdentifier("footerCommentCell") as! FooterCommentTableViewCell
cell.footerIndex = section
cell.delegate = self
return cell
}
This footer has autolayout like
http://joxi.ru/DrloGbpC4Eb3vA
1 - view 1
2 - view 2
3 - view 2 height constraint (view2Height
)
At init phase view2Height
is 0, and for some actions I want to change this constraint constant to another value, for example - 50, and make my header changed to.
Is there any way to implement this?