Have a reloadData for a UITableView animate when changing

前端 未结 17 2949
感动是毒
感动是毒 2020-11-28 17:25

I have a UITableView that has two modes. When we switch between the modes I have a different number of sections and cells per section. Ideally, it would do some cool anima

17条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 18:03

    Swift 4 version for @dmarnel answer:

    tableView.reloadSections(IndexSet(integer: 0), with: .automatic)
    

提交回复
热议问题