【发布时间】:2014-06-05 08:44:12
【问题描述】:
我需要将我的[self.fetchedResultsController fetchedObjects] 转换为NSArray。
在使用[self.fetchedResultsController fetchedObjects] 之前我已经尝试过,但它会从其他属性中返回很多我不需要的属性。我只想从实体Autobus 中名为circuito 的具体属性中获取值列表。
【问题讨论】:
-
试试
[[self.fetchedResultsController fetchedObjects] valueForKey:@"circuito"]; -
谢谢,解决了我的问题
标签: ios objective-c core-data nsarray nsfetchedresultscontroller