0
votes

i have table view for showing product detail and each part is tableview cell,

in one of my tableview cell that is showing sizes and stores that has that size like this like this and this

when the user click on one of collection view items tableview expand to show stores.

if i update root tableviewcell constraints i need to reload that cell after reloading collection scroll will rest

i tried beginUpdates and endUpdates for root tableview after changing constraint it will work but in some situation it will show a blank cell what's wrong in my idea

in summary : how to expand tableview cell without reloading and refresh cell view .i think both questions are equal

1
what about implementing that logic inside the collectionViewCellSh_Khan
collectionview cells are not full width according to images bro .Hamed Nova

1 Answers

1
votes

Change the constraints in the tableView and add to model the currently selected collectionViewCell and scroll to it with no animation in collectionViewCell awakeFromNib method the default value is 0 which means no animation will happen [the model I mean here is the model of the tableView from which you display every tableViewCell]