Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView: How to remove index?

I've been playing around with the tutorial Core Data Tutorial: How To Use NSFetchedResultsController. If I add a sectionNameKeyPath to the NSFetchedREsultsController I will get a `UITableView like this: enter image description here

When I provide it with a sectionNameKayPath it creates a index in the right side of the view. In my application the Section Titles are dates like "Sunday 11. december", "Saturday 10. december" etc. These values are not appropriate for a index like this. How can I remove the index from my ´UITableView´

like image 371
dhrm Avatar asked Jan 18 '23 02:01

dhrm


1 Answers

Simply remove the implementations of sectionIndexTitlesForTableView: and tableView:sectionForSectionIndexTitle:atIndex: from your data source object. Without these, no index will be created.

like image 106
jrturton Avatar answered Jan 28 '23 21:01

jrturton