iPhone: Group by month - Core Data

前端 未结 2 2086
野性不改
野性不改 2021-01-14 10:22

I store dates in a core data entity attribute, I then display the date in the table cells. I want to group all the cells according to months and only display the relevant da

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-14 10:55

    Apple has a really great sample showing exactly how you can achieve this. I think it is what you are looking for.

    Check out: http://developer.apple.com/library/ios/#samplecode/DateSectionTitles/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009939

提交回复
热议问题