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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -