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的代理方法, return cell的代理方法呢,怎么写的
能否贴出其它代理方法内容?
首先,看下UITableView的delegate和DataSource设置了没.如果设置了,能否贴一下代理方法的代码
一种情况是,你如果是可视化的.直接对cell进行了设定.代码在写的就不会改变,另外一种就是,你可以看看你的协议有没有设置.在你的cellforRow中.cell是否是注册的cell.
看看你tabelview的高度是否设够了。出于cell回收策略,iOStabelview的cell显示数量是受限于tabelview高度的。