DSLCalendarView icon indicating copy to clipboard operation
DSLCalendarView copied to clipboard

Programmatically select from first to last date of the current viewing month

Open harrypotter30022003 opened this issue 11 years ago • 1 comments

Hello, I have developed the delegate to get the current month name and year by tapping on the title but i'm not sure how to select/highlight the whole dates within that specific month.

Any help?

Thanks

Tony

harrypotter30022003 avatar Dec 04 '13 08:12 harrypotter30022003

this is the general way

  • (void)calendarView:(DSLCalendarView *)calendarView willChangeToVisibleMonth:(NSDateComponents *)month duration:(NSTimeInterval)duration { NSLog(@"Will show %@ in %.3f seconds", month, duration);

    [month setDay:3]; _calendarView.selectedRange= [[DSLCalendarRange alloc] initWithStartDay:month endDay:month];

} it will select the third day of every month modifyit to your need

syrakozz avatar Sep 21 '14 07:09 syrakozz