Reload sections in UITableView

后端 未结 6 2499
执笔经年
执笔经年 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:28

    Update for quick usage in Swift (as of 2.2)

    // index 0 being the section number 1 that you will reload
    tableView.reloadSections(NSIndexSet(index: 0), withRowAnimation: .None)
    

提交回复
热议问题