خرید بک لینک

Vote count: 1

I have the following array of data:

NSArray *denoms = [NSArray arrayWithObjects:@"$1", @"$1.5", @"$2", @"c2.5", @"c10", @"$100", @"$51", nil];

If I try to search following string in array then it should retu me the exact values out of the array if exist.

For e.g. @"$1,$100" then result should be

$1
$100

How to filter in this way?

asked 7 mins ago

1 Answer

Vote count: 1

NSPredicate *bPredicate = [NSPredicate predicateWithFormat:@"SELF IN %@", @"$1,$100"];

I used to get the solution while posting the question. So keep it for future references.

answered 7 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 15 ارديبهشت 1395 ساعت: 17:57

صفحه بندی