Display two array values in single tableview cell

前端 未结 4 988
孤街浪徒
孤街浪徒 2021-01-28 23:58

I want to display webservies array values in tableview for each cell i need to display two values Ex:total ten values mean each cell display 2 values in each row. webservies t

4条回答
  •  隐瞒了意图╮
    2021-01-29 00:35

    Follow this tutorial for custom cell and design it the way you want:

    Crafting Custom UITableView Cells

    This is the method where you can set the values for the custom cell labels from each array:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    
        return cell;
    }
    

提交回复
热议问题