开发者

NSFetchedResultsController for map annotations

开发者 https://www.devze.com 2022-12-16 07:07 出处:网络
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

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:.

0

精彩评论

暂无评论...
验证码 换一张
取 消