Thursday, September 26, 2013

NSPredicate usage questions - seeking advice

NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "and name in @ a", array];

array is an array
Should be used here in how to write it

I write is wrong oh
Seeking advice
Reply:
NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "and name in @ a", array];
Wrong, back If you add NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "and name in @ a and (name like '*% @ *' or DepName like '*% @ *')", array, searchText, searchText];
The latter two could not identify how to do it!

No comments:

Post a Comment