objective c - Filter dictionary array with multiple value -
( { ireplyid = 3870; name = rahul; }, { ireplyid = 3914; name = tom; }, { ireplyid = 3873; name = smith; }, { ireplyid = 3871; name = yator; }, { ireplyid = 3872; name = jack; }, { ireplyid = 3875; name = smith; }, { ireplyid = 3876; name = rancho; }, { ireplyid = 3878; name = vid; }, )
my requirement filter array multiple condtion ireplyid = 3871,3870,3914 using nspredicate. tried but didn't solution predicate, can solve using loop not way. highly appreciated.
[array filteredarrayusingpredicate:[nspredicate predicatewithformat:@"ireplyid in (%@)",[idsarray componentsjoinedbystring:@","]]]
Comments
Post a Comment