iOS tableview的indexPath.row 显示时从1开始,下拉之后会显示0

 -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.array.count;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    NSLog(@"indexpath.row:%lu",indexPath.row);

    static NSString *identity = @"UITableViewCell";

    [self.tableView registerClass:[ApplyTableViewCell class] forCellReuseIdentifier:identity];

    ApplyTableViewCell *applyCell = [self.tableView dequeueReusableCellWithIdentifier:identity forIndexPath:indexPath];

    if (applyCell == nil) {
        applyCell = [[ApplyTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identity];

    }

    _cell = applyCell;

    _cell.showViewDelegate = self;

    applyCell.replyArr = self.replyArr;
    applyCell.model = self.array[indexPath.row];

    return applyCell;
}

求解答

坐标超了 ,还要十个字符

这个是你每个数据加入table的时候告诉你当前索引数据 然后你填充对应数据

索引有问题 还有疑问加我QQ:东方执念-490986262

怎么会从indexPath.row = 1开始显示呢,从0 的。你这注册,应该在viewDidLoad里面注册。跑来这,神人也。