I think it’s a case sensitivity issue. You can use “nil” or “NULL”, but not “NIL”. This works fine for me:
NSPredicate *eventWithNoEndDate = [NSPredicate predicateWithFormat:@"endDate = nil"];
More Related Contents:
- Using NSPredicate to filter an NSArray based on NSDictionary keys
- Core Data NSPredicate “deleted == NO” does not work as expected
- NSPredicate: filtering objects by day of NSDate property
- How change the size of sprite in cocos2d? [closed]
- Cannot hide status bar in iOS7
- UIRefreshControl without UITableViewController
- Would it be beneficial to begin using instancetype instead of id?
- Objective-C Introspection/Reflection
- Add animated Gif image in Iphone UIImageView
- NSString tokenize in Objective-C
- Why does rand() % 7 always return 0?
- iOS taking photo programmatically
- Are classes objects in Objective-C?
- Does ARC work with Core Graphics objects?
- How does rand() work? Does it have certain tendencies? Is there something better to use?
- Prompt login alert with Twitter framework in iOS5?
- What goes into your .gitignore if you’re using CocoaPods?
- 2D arrays using NSMutableArray
- Core Data Predicate Date Comparison
- Converting to Swift 3 renamed my own Objective-C method
- Custom dealloc and ARC (Objective-C)
- How to send objects in NIB files to front/back?
- How to set a timeout with AFNetworking
- CoreData: error: Failed to call designated initializer on NSManagedObject class
- How Can I Draw Image with Text Wrapping on iOS?
- Get total step count for every date in HealthKit
- How to declare a constant in swift that can be used in objective c
- Using Super in an Objective C Category?
- Cocoa/ Objective-C Shell Command Line Execution
- Objective-C Property Access