I have a height outlet for a view. It is set to 55.In a tableview i have used it. Some where i require a static height and some where it does not require a height. So i want to remove this static height from my code.How can i achieve this?is it possible?
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
if(heightIsStatic.count> 0)
{
//here i require a static height and is working fine as height can
//be printed as 55
}
else
{
self.ViewHeight.active = false
print(self.ViewHeight.constant)
}
}
Even i have set active to false it is still showing static height constraint.Can i remove that static height in else case??