After UITableView reloadData, the cellForRowAtIndex method is not called

Problem Description

After the tableView is refreshed, the cellForRowAtIndex method is not called, so the cell content is not actually refreshed.

problem solved

After working for an hour, I finally found the same problem:
TableView does not refresh when calling reloadData, and the cellForRowAtIndexPath method does not go.

problem causes

The reason for this problem should be that the height of the frame is too small when the UITableView is initialized, even if it is changed back in other methods later, it will also cause this problem. The specific reason has not yet been investigated.

Guess you like

Origin blog.csdn.net/jhq1990/article/details/64444431