Here's the bit of code, I'm running this after an async http fetch. Though I'll just hardcode it for now.
How come the button isn't being hidden?
if let buttonRow = self.form.rowByTag(self.kDeleteRowTag) {
buttonRow.hidden = true
buttonRow.updateCell()
}
Hey @mbalex99 , updateCell does not evaluate hidden condition, it only updates the tableViewCell according row info. You can invoke buttonRow.evaluateHidden() to force the evaluation of hidden condition, it will make the cell visible/invisible if needed.
Regards
OH wow okay awesome. This worked!
if let buttonRow = self.form.rowByTag(self.kDeleteRowTag) {
buttonRow.hidden = true
buttonRow.evaluateHidden()
}
Most helpful comment
OH wow okay awesome. This worked!