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 i can repeat event? like every day, month, year? #400

Closed
marikk07 opened this issue Aug 30, 2016 · 5 comments
Closed

How i can repeat event? like every day, month, year? #400

marikk07 opened this issue Aug 30, 2016 · 5 comments

Comments

@marikk07
Copy link

No description provided.

@WenchaoD
Copy link
Owner

In -calendar:numberOfEventsForDate: if the there are events in the date , return the number. else return a zero. See storyboard example.

@marikk07
Copy link
Author

I think we don't understand each other, i am asking about RecurrenceRule for one event. i want create one event with many different dates

@evgenii-chopei
Copy link

Yes, agree with marikk07, i try my best with creating that! But it looks like bicycle.So help

@WenchaoD
Copy link
Owner

An example:

- (NSInteger)calendar:(FSCalendar *)calendar numberOfEventsForDate:(NSDate *)date
{
    return YES;
}

It shows event for _every day_.

- (NSInteger)calendar:(FSCalendar *)calendar numberOfEventsForDate:(NSDate *)date
{
    return [calendar dayOfDate:date] == 2 ? 1 : 0;
}

It shows event for _2nd day of every month_.

As it's not a function provided by this repo , you should reason by this analogy.

Good luck.

@evgenii-chopei
Copy link

OK, i get it , thanks!

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

3 participants