ios - UITableViewCell minimize and maximize animation -


i have uitableview , when cell selected reloads different type of cell (to simulate maximize , minimize effect). problem cannot figure how animate since reloaddata() method called. achieved kind of animation using

uiview.transition(with: tableview,                           duration: 0.35,                           options: .transitioncrossdissolve,                           animations: { self.tableview.reloaddata()  }) 

but it's not how want @ end. did same thing , has better solution?

if want animated change don't use reloaddata.

use reloadrowsatindexpaths:withrowanimation: , specify indexpaths have changed.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -