I've an application that works with a static cells table view. In some cases in need to hide a few cells and when needed show them again. How can i do this ?
To do what you wanna do I work with numberOfRowsInSection tableview's method using a bool variabile
if section == 3 {
if !hideTableSection! { return 1 } else { return 2 }
}
Every time I need to hide some cell I change the bool variable then I reload my table.
It can manage only the latest rows of every section but I didn't find nothing better...
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