How to use the first character as a section name

后端 未结 6 1946
执念已碎
执念已碎 2020-11-27 09:54

I\'m using Core Data for a table view, and I\'d like to use the first letter of each of my results as the section header (so I can get the section index on the side). Is the

6条回答
  •  清歌不尽
    2020-11-27 10:19

    See my answer to a similar question here, in which I describe how to create localized sectionKey indexes that are persisted (because you cannot sort on transient attributes in an NSFetchedResultsController).

提交回复
热议问题