The UITableViewDelegate
has a convenient function, willDisplay
.
I need to add a handler for when a cell hides, which is essentially the opposite of willDisplay
. How can I detect this event?
The method you'll want to use is
func tableView(_ tableView: UITableView,
didEndDisplaying cell: UITableViewCell,
forRowAt indexPath: IndexPath)
Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With