UITableView: how to delete an index?

I played with the tutorial Basic Data Tutorial: How to use NSFetchedResultsController . If I add sectionNameKeyPath to NSFetchedREsultsController , I get `UITableView as follows: enter image description here

When I give it sectionNameKayPath , it creates an index on the right side of the view. In my application, the section names are dated as “Sunday 11. December”, “Saturday 10. December”, etc. These values ​​are not suitable for such an index. How to remove an index from my "UITableView"

+4
source share
1 answer

Just remove the implementation of sectionIndexTitlesForTableView: and tableView:sectionForSectionIndexTitle:atIndex: from the data source object. Without them, the index will not be created.

+9
source

Source: https://habr.com/ru/post/1385741/


All Articles