iOS Table View Refresh Cell

前端 未结 3 1535
刺人心
刺人心 2021-02-04 01:46

I followed the advice in the link below to add images to cells in a table view.

Adding Image to Table Cell (iOS)

Is there a way to force refresh a cell i.e. add/

3条回答
  •  情书的邮戳
    2021-02-04 02:22

    Since you already have indexPath of the cell, sometimes this may just do the job

    UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
    [cell reloadInputViews];
    

提交回复
热议问题