Gop*_*ath 3 iphone object nsmutablearray ios
我有存储在许多价值观NSMutableArray一样@"New",@"Old",@"Future".将NSMutablArray有100多个对象.我需要@"New"从数组中找到对象.有谁可以帮我解决这个问题?提前致谢.
Mun*_*ndi 13
这将是最经济[测试]的技巧:
[myArray filteredArrayUsingPredicate:[NSPredicate
predicateWithFormat:@"self == %@", @"New"]];
Run Code Online (Sandbox Code Playgroud)