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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to