tableView reloadData not working

前端 未结 6 1616
小鲜肉
小鲜肉 2021-01-17 07:45

When I call [tableView reloadData] the function - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

6条回答
  •  走了就别回头了
    2021-01-17 08:17

    If you are not able to reload table using

    [self.tableView reloadData];
    

    Please make sure you are adding reference to following from the storyboard

    @property (weak, nonatomic) IBOutlet TableView *tableView;
    

    How to add reference you can click on following Image Link:

    tableView reference outlet

提交回复
热议问题