In my project, I have a set of attributes in essence. One of them is a path as a string. I need all the records that have my line as a subpath in the path.
Example: Path: / var / mobile / Applications / C4ECC129-36D2-4428-8BB0- 6B1F4C971FC1 / Library / Cache / Packages / 1000
Mystring : Library / Cache / Packages / 1000
I tried using "AND" and contained as below, but could not.
[NSPredicate predicateWithFormat:@"bookPath like[c] '%%%@'",Mystring]; [NSPredicate predicateWithFormat:@"bookPath Contains[cd] '%@'",Mystring];
Can someone help writing a predicate to retrieve those records that contain mystring.
It really helps me a lot.
Tnx in advance
source share