Re: titleForHeaderInSection wrong section count.
Re: titleForHeaderInSection wrong section count.
- Subject: Re: titleForHeaderInSection wrong section count.
- From: Kyle Sluder <email@hidden>
- Date: Mon, 19 Oct 2015 16:31:42 -0500
On Mon, Oct 19, 2015, at 01:26 PM, James Cicenia wrote:
> 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?
Can you reproduce this in a sample app and attach it to a Radar?
--Kyle Sluder
_______________________________________________
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