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

Adding event to a day #350

Closed
pikwan24 opened this issue Jun 29, 2016 · 3 comments
Closed

Adding event to a day #350

pikwan24 opened this issue Jun 29, 2016 · 3 comments

Comments

@pikwan24
Copy link

How to add event to a specific day and then displaying the dot showing that day has an event?

The readme.md only consists of the UI aspect, can you do some technical aspects?

Thanks!

@WenchaoD
Copy link
Owner

Hi @pikwan24 Pls download the example and view Storyboard Example. Thanks

@pikwan24
Copy link
Author

pikwan24 commented Jul 1, 2016

Hi, the example did not state on how to add event to a day, only showing "numberOfEventsForDate" and those with dots are days in multiples of 5 due to the code.

All i want is just that when i have a certain date, example: 20151005, i want to show a dot on that day. How do i do it? pls help.

@WenchaoD
Copy link
Owner

WenchaoD commented Jul 1, 2016

- (NSInteger)calendar:(FSCalendar *)calendar numberOfEventsForDate:(NSDate *)date
{
    if ([[calendar stringFromDate:date format:@"yyyyMMdd"] isEqualToString:@"20151005"]) {
        return 1;
    } else {
        return 0;
    }
}

Any further questions about your code pls use stackoverflow

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

2 participants