I have a collectionView consisting of 100 imageViews INSIDE my expandable tableView. When I click on a cell of my tableView (to expand it), I change the height of the tableview to 4000 to display my collectionView of 100 imageViews When I click again (collapse) i reduce the height of tableView so that the collectionView isn't visible anymore
Both these cases result in a delay that would ruin the user experience
How can i make it more smooth and is there a better way to go about this than what i'm currently doing?
I am using:
self.tableView.beginUpdates()
self.tableView.reloadRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.None)
self.tableView.endUpdates()
to update the height of my tableview cell.