Trouble filtering array of custom objects by an NSNumber using NSPredicate
问题 This should be straightforward but something is preventing me from filtering an array of custom objects by NSNumber using NSPredicate. Perhaps it has something to do with the datatype when converting from JSON but I can't figure it out. I download data from a JSON in an array of custom Objects that look like: {"hid":"47","public":"1"} The code to parse the JSON looks like: if (feedElement[@"public"] && ![feedElement[@"public"] isEqual:[NSNull null]]) { newMyObject.pub = feedElement[@"public"]