swift中tableView的刷新

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

相關文章
相關標籤/搜索