The NSPredicate class is used in Mac OS X and iOS development to define logical conditions used to constrain a search either for a fetch or for in-memory filtering.
I have an array of dictionaries. I want to filter the array based on a key. I tried this: NSPredicate *…
objective-c cocoa nsarray nsdictionary nspredicateI have a Core Data model with an NSDate property. I want to filter the database by day. I assume …
objective-c core-data nsdate nspredicate nsfetchedresultscontrollerMost part of AddressBook framework is deprecated in iOS 9. In the new Contacts Framework documentation only shows how to fetch …
ios ios9 nspredicate contactsI have an NSArray and need to filter out any strings that are null or rather, have ' ' (empty …
ios objective-c nspredicateI have a NSPredicate like this: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"entity.name CONTAINS %@", myString]; But that will return anything which …
objective-c ios core-data nsstring nspredicateBack again needing more help with constructing my NSPredicates :( Category { name:string subs<-->>SubCategory } SubCategory { name:…
ios core-data nspredicateI have an NSArray of CalEvents returned with the [CalCalendarStore eventPredicateWithStartDate] method. From the events returned, I am trying to …
objective-c nsstring nsarray nspredicateSuppose I have a list of books stored in Core Data. I want to search for a book by it's …
iphone xcode core-data nspredicate nsmanagedobjectI have an NSArray formed with objects of a custom class. The class has 3 (city, state, zip) string properties. I …
iphone nsarray nspredicateHow can I compare two NSNumbers or a NSNumber and an Integer in an NSPredicate? I tried: NSNumber *stdUserNumber = [NSNumber …
ios objective-c core-data nspredicate