简体   繁体   English

如何在 iphone sdk 中将 NSArray/NSMutableArray 转换为 NSFetchedResultsController?

[英]how to convert NSArray/NSMutableArray to NSFetchedResultsController in iphone sdk?

how to convert NSArray/NSMutableArray to NSFetchedResultsController in iPhone SDK.如何在 iPhone SDK 中将 NSArray/NSMutableArray 转换为 NSFetchedResultsController。 Actually i got number of online users in NSFetchedResultsController format.实际上,我获得了 NSFetchedResultsController 格式的在线用户数量。 But now i want to show only those users which are within 1000 meters of range.但现在我只想显示那些在 1000 米范围内的用户。 So i converted NSFetchedResultsController into NSArray, and filter array with condition, but now i want to again convert NSArray into NSFetchedResultsController type object.所以我将 NSFetchedResultsController 转换为 NSArray,并根据条件过滤数组,但现在我想再次将 NSArray 转换为 NSFetchedResultsController 类型 object。 How to do that?怎么做?

You could not convert an NSArray to NSFetchedResultsController ,As of now there is no method available which support to convert NSArray to NSFetchedResultsController .您无法将NSArray转换为NSFetchedResultsController ,目前还没有支持将NSArray转换为NSFetchedResultsController的方法。

where as you could access the NSArray from NSFetchedResultsController .您可以从NSFetchedResultsController访问NSArray

See Documentation for More info有关更多信息,请参阅文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM