0
私はNSFetchedResultsControllerを持つシンプルなテーブルを持っています。現在の日付を使用してコンテンツを取得します。私の質問は、それは常に現在の日付/時間ですので、動的NSPredicateを持つ方法があるのですか?NSFetchedResultsController、NSPredicate with [NSDate new]
マイNSPredicateは次のとおりです。
NSDate *now = [NSDate new];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"((transmission_time <= %@) && (%@ <= transmission_end_time))",now,now];
[fetchRequest setPredicate:predicate];