Tableview reload section without animation

 Problem:

Tableview reload section without animation because i had collectionview inside the tableview cell.While reload it shows animation.How can i avoid that?


Solution:


                    UIView.setAnimationsEnabled(false)

                    self.myTableView.beginUpdates()

                    self.myTableView.reloadSections(IndexSet(arrayLiteral: 0), with: .none)

                    self.myTableView.endUpdates()

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift