• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: titleForHeaderInSection wrong section count.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >titleForHeaderInSection wrong section count. (From: James Cicenia <email@hidden>)

  • Prev by Date: Debugging Faux Delegate calls
  • Next by Date: Re: Debugging Faux Delegate calls
  • Previous by thread: titleForHeaderInSection wrong section count.
  • Next by thread: UIActivityItemSource and Facebook?
  • Index(es):
    • Date
    • Thread