samedi 9 juillet 2016

UILocalizedIndexedCollation: What is the difference between .sectionTitles and .sectionIndexTitles?


Straight forward question: UIKit's UILocalizedIndexedCollation contains two similar properties, sectionTitles and sectionIndexTitles, that both return type [String].

In US English, both properties return [A, B, ... Y, Z, #]. What the heck is the difference between the two? Surely, there must be a reason for having two properties. The documentation isn't very clear, so an "explain like I'm 5" answer would be great.


Aucun commentaire:

Enregistrer un commentaire