1. tableView.reloadData() 用这个刷新,当前屏幕上有多少个cell就会调cellforrow多少次
2. 用这个it
tableView.beginUpdates()
tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
tableView.insertRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
tableView.endUpdates()io
插入多少个cell就调几回 cellforrowtable