I use NSPredicate to do a search like on the iPhone when we search for any application.
I say, for example, 4 keywords
- Dean
- New Delhi
- Ahmedabad
- Salama Delhi
I tried to create a predicate with
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"keyword BEGINSWITH[c] 'd'" This gives me Deccan as a way out. But the problem is that I want every word to start with d So, from the above example, I need a conclusion like Dean, New Delhi, Salam Delhi , but NOT Ahmedabad
Stuck in this watch issue. tried contains, matches, but my failure ..
Any help on the right path would really be appreciated.
ios nspredicate
Suresh varma
source share