Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I create once event in two days like (22/10/2017 : 22:10) to (23/10/2017 : 04:10) #47

Open
chathurka opened this issue Sep 7, 2018 · 1 comment

Comments

@chathurka
Copy link

No description provided.

@chathurka
Copy link
Author

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant