Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从核心数据中获取了我想要的内容:
NSArray *结果
如何将这些字符串值从结果添加到另一个 NSArray?
使用如下示例的复制方法:NSArray
NSArray
EX: NSArray *result=[context executeFetchRequest:fetch error:&error]; NSArray *anotherArray = [result copy];
或者如果你想将对象传递给 NSMutableArray 然后使用 as :
NSMutableArray *anothrMutableArray = [result mutableCopy];