Reload sections in UITableView

后端 未结 6 2380
执笔经年
执笔经年 2021-02-13 11:34

I am writing an app that notifies user when its time to take his/her medicine. The label at the top of the page shows a date and the tableView gets populated with m

6条回答
  •  爱一瞬间的悲伤
    2021-02-13 12:17

    You can use this also--

    indexPath.section - `UITableView section which you want to reload .

     NSIndexSet *section = [NSIndexSet indexSetWithIndex:indexPath.section];
    [self.tableView reloadSections:section withRowAnimation:UITableViewRowAnimationNone];
    

提交回复
热议问题