I fetch records from core data and fill NSMutableArray with them,now i want to filter them with below code but doesn’t work properly.how should i do it?
[array filterUsingPredicate:[NSPredicate predicateWithFormat:@"date==%@",date1 ]];
//date = a field with format NSDate in core data
//date1 = NSDate
Maybe it’s because of that you enter date with time and when you want to filter array with
date1the time ofdate1isn’t equal to date that you store in core datalook at this code and enter a date without time