Setting UITableView headers from NSFetchedResultsController

后端 未结 2 424
清酒与你
清酒与你 2021-01-18 03:14

I have a NSFetchedResultsController which is fetching objects from a NSManagedObjectContext. I\'m using the results to populate a UITableView.

2条回答
  •  猫巷女王i
    2021-01-18 03:59

    I haven't had a chance to dig into that area of the SDK yet (my work is with C#, so the iPhone stuff is in my hobby time), but from what I can tell you would want to use the other init, specifically initWithKey:ascending:selector: and for the selector you could pass a selector to your compare method that would only compare on the Year/Month/Day, ignoring time.

    Here's the url for reference: iPhone Library Documentation

    Hope this helps!

提交回复
热议问题