Sections in UITableView not showing properly

后端 未结 1 1055
孤独总比滥情好
孤独总比滥情好 2021-01-27 15:51

I have a problem with UITableView sections. I\'m using NSFetchedResultsController to populate table and I\'ve provided sectionNameKeyPath:

1条回答
  •  梦毁少年i
    2021-01-27 16:23

    For this example solution was pretty straight - adding one NSSortDescriptor to existing one in NSFetchedResultsController sort descriptors array.

    So now, fetched data is firstly sorted by section and then it is sorted alphabetically.

    0 讨论(0)
提交回复
热议问题