开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜