tableview 运行不显示第一行,下拉刷新才能显示,为什么?

如下图所示,如果cell 改成tableView,那么问题就会如标题所说的。虽然代码不报错,而且如果数据大于第一行,那么其他数据还可以显示出来。记录下来,自己碰见的小坑。

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellidentifier = @"caseCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellidentifier];
    UILabel *label = (UILabel *)[cell viewWithTag:100];
原文地址:https://www.cnblogs.com/liqiwa/p/6425519.html