jonathantribouharet / JTCalendar

A customizable calendar view for iOS.
MIT License
2.76k stars 531 forks source link

setDate not working #381

Open sjuvvalapalem opened 5 years ago

sjuvvalapalem commented 5 years ago

I am programatically trying to set the date to a different date than today.

Here is the code i used still its not working. It always selects todays date.

_calendarManager = [JTCalendarManager new]; _calendarManager.delegate = self; NSDate* dt1= [_calendarManager.dateHelper addToDate:[NSDate date] days:2]; [_calendarManager setMenuView:_calendarMenuView]; [_calendarManager setContentView:_calendarContentView]; [_calendarManager setDate:dt1];

Here dt1 is 19th. but its still only highlighting 17th. I am stumped.

Any help would be greatly appreciated.

image Thanks, Suman

sjuvvalapalem commented 5 years ago

Any help on this would be greatly appreciated.