-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
I want to show current date selected when calendar loads.
I've tried using,
NSDate *today = [NSDate date];
NSCalendar *gregorian = [[NSCalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *component = [gregorian components:(NSCalendarUnitDay|NSCalendarUnitMonth|NSCalendarUnitYear) fromDate:today];
[_calendarView setSelectedRange:[[DSLCalendarRange alloc] initWithStartDay:component endDay:component]];
But its selecting each and every day into the calendar.
Any solution?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels