Insert section to UITableview
问题 How to add a new section programmatically to UITableview? I have pagination and when I try call insertSections in performBatchUpdates it works fine for the first time but when load second page UITableview does't update (no errors just not updated and do not called completion block). private var periods = [PeriodHistoryModel]() func fetchHistoryWith(models: [PeriodHistoryModel]) { guard models.count > 0 else { return } let newSectionsCount = models.count - periods.count let lastPeriod =