NSFetchedResultsController for map annotations
T开发者_开发百科he documentation for the NSFetchedResultsController states that it is intended for use to 'efficiently manage the results returned from a Core Data fetch request to provide data for a UITableView object'.
Could I use an NSFetchedResultsController to manage a collection of map annotations as well? I am not sure how I would do this. Any ideas?
I assume that you mean that you want something to manage a collection of Core Data objects that will be used to create annotations.
You should use a standard collection: NSArray or NSSet (or NSMutableArray or NSMutableSet).
Check out the NSManagedObjectContext method executeFetchRequest:error:.
精彩评论