Reputation: 1198
I am using FSCalendar for my application. Can anyone tell me how to set different dot color for only selected event ?
Upvotes: 1
Views: 856
Reputation: 167
You have to set dataSource and delegate of calendar
calendar.dataSource = self;
calendar.delegate = self;
- (NSInteger)calendar:(FSCalendar *)calendar numberOfEventsForDate:(NSDate *)date
{
return 4;// Return how many dot to show below date
}
- (NSArray *)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance eventColorsForDate:(NSDate *)date
{
return @[[UIColor magentaColor],appearance.eventColor,[UIColor blackColor],appearance.eventColor];
}
Upvotes: 1