How to remove NSDate objects from a NSMutableArray
- by Ryan
I have been working with NSArrays and NSMutableArrays that store NSDate objects for a few days now. I noticed that calling [listOfDates removeObject:date1] removes all the NSDate objects from the array. I have instead been doing this to remove objects:
NSMutableArray *dateList; // Has Dates in it
NSDate *dateToRemove; // Date Object to…