NSPredicate: how to treat strings as numbers?
问题 I am building a compound NSPredicate to make a fetch request, using core data on sqlite, within iOS app. Everything already works fine, but I am not being able to include the last condition. The reason is quite simple: I need to check if the value, stored as a string, is within certain float bounds. The problem is that the conditions are checked on alphabetical order basis, and not according its float value. Here it is the code: NSString * conditionToBeAdded = [NSString stringWithFormat:@" &&