Table view cell load animation one after another

后端 未结 7 980
面向向阳花
面向向阳花 2021-01-31 05:32

I need to animate the load of the table view rows. When the table reloads the data I need the rows get in from the left one after another. How can I achieve this?

7条回答
  •  有刺的猬
    2021-01-31 06:24

    This is simple beautiful fade animation Which I mostly I used in my tableview

    func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
            cell.alpha = 0
            UIView.animate(withDuration: 1) {
                cell.alpha = 1.0
            }
        }
    

提交回复
热议问题