When setting up a UITableView, my return rows cannot be executed no matter how many they are. Even when running, they are all the same.. There are only a few rows.
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 20;
}
return 20 or 50. Or more or less is the same.. The results displayed on the simulator are the same, only a few lines, and when I operate the Cell later, it is also displayed on the tableView Not coming out.
Return cellheight’s proxy method, return cell’s proxy method, how to write it
Can you post other proxy methods?
First of all, check whether the delegate and DataSource of UITableView are set up. If so, can you post the code of the proxy method
One situation is that if you set the cell directly visually, the code will not change when you write it. The other situation is that you can see if your protocol is set. In your cellforRow .cell is a registered cell.
Check whether the height of your tabelview is set enough. Due to the cell recycling strategy, the number of cells displayed in iOStabelview is limited to the height of the tabelview.