Open chathurka opened 6 years ago
please update "eventsByDate" function in "MSWeekView" class
(NSArray )eventsByDate:(NSDate )date { NSMutableArray *filtedEvents = [NSMutableArray.alloc init];
for (MSEvent event in mEvents) { NSDate eventSDate = event.StartDate.dateWithOutTime; NSDate *eventEDate = event.EndDate.dateWithOutTime; if (eventSDate == date || eventEDate == date || ((eventSDate < date) && (eventEDate > date))){ [filtedEvents addObject:event]; } }
// filtedEvents = [mEvents filter_:@selector(isInDay:) withObject:date]; return filtedEvents; }
please update "eventsByDate" function in "MSWeekView" class
(NSArray )eventsByDate:(NSDate )date { NSMutableArray *filtedEvents = [NSMutableArray.alloc init];
for (MSEvent event in mEvents) { NSDate eventSDate = event.StartDate.dateWithOutTime; NSDate *eventEDate = event.EndDate.dateWithOutTime; if (eventSDate == date || eventEDate == date || ((eventSDate < date) && (eventEDate > date))){ [filtedEvents addObject:event]; } }
// filtedEvents = [mEvents filter_:@selector(isInDay:) withObject:date]; return filtedEvents; }