titleForHeaderInSection wrong section count.
titleForHeaderInSection wrong section count.
- Subject: titleForHeaderInSection wrong section count.
- From: James Cicenia <email@hidden>
- Date: Mon, 19 Oct 2015 13:26:55 -0500
I have a fetch
let aFetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: getManagedObjectContext(), sectionNameKeyPath:"product.sectionKey", cacheName:nil)
In the following function:
func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
print(section)
print (searchFetchedResultsController.sectionIndexTitles)
I see:
30
["1", "2", "4", "8", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
Yes there are 30 elements but the array is zero based.
What is happening here?
Thanks
James
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden