Can't use reloadData from another class

前端 未结 7 2013
栀梦
栀梦 2021-01-15 03:56

I have 2 classes, classA and classB In classA I have a tableview that works and refreshes on demand. all the delegates and datadource are fine and there\'s also a property <

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-15 04:17

    from the documentation:

    For efficiency, the table view redisplays only those rows that are visible.

    so if your tableView is not visible then it won't get updated.

提交回复
热议问题