ipraba / EPCalendarPicker

Colourful calendar for iOS written in Swift
MIT License
347 stars 73 forks source link

Printing the dates from start year to current date in console automatically #12

Closed jithinrajtnr closed 8 years ago

jithinrajtnr commented 8 years ago

When selecting an disabled date from the calendar, the dates from the start date of the calendar to current date is printing to the console automatically. How can I disable this ?

I created calander controller instance like this let calendarPicker = EPCalendarPicker(startYear: 2016, endYear: 2017 multiSelection: false)

and from the calander I selected a disabled date(date before startdate) and this result is automatically printed to console.

2016-02-20 18:30:00 +0000
2016-02-21 18:30:00 +0000
2016-02-22 18:30:00 +0000
2016-02-23 18:30:00 +0000
2016-02-24 18:30:00 +0000
2016-02-25 18:30:00 +0000
2016-02-26 18:30:00 +0000
2016-02-27 18:30:00 +0000
2016-02-28 18:30:00 +0000
2016-02-29 18:30:00 +0000
2016-03-01 18:30:00 +0000
2016-03-02 18:30:00 +0000
2016-03-03 18:30:00 +0000
2016-03-04 18:30:00 +0000
2016-02-29 18:30:00 +0000
2016-03-01 18:30:00 +0000
2016-03-02 18:30:00 +0000
2016-03-03 18:30:00 +0000
2016-03-04 18:30:00 +0000
2016-03-05 18:30:00 +0000
2016-03-06 18:30:00 +0000
2016-03-07 18:30:00 +0000
2016-03-08 18:30:00 +0000
2016-03-09 18:30:00 +0000
2016-03-10 18:30:00 +0000
2016-03-11 18:30:00 +0000
2016-03-12 18:30:00 +0000
2016-03-13 18:30:00 +0000
2016-03-14 18:30:00 +0000
2016-03-15 18:30:00 +0000
2016-03-16 18:30:00 +0000
2016-03-17 18:30:00 +0000
2016-03-18 18:30:00 +0000
2016-03-19 18:30:00 +0000
2016-03-20 18:30:00 +0000
2016-03-21 18:30:00 +0000
2016-03-22 18:30:00 +0000
2016-03-23 18:30:00 +0000
2016-03-24 18:30:00 +0000
2016-03-25 18:30:00 +0000
2016-03-26 18:30:00 +0000
2016-03-27 18:30:00 +0000
2016-03-28 18:30:00 +0000
2016-03-29 18:30:00 +0000
2016-03-30 18:30:00 +0000
2016-03-31 18:30:00 +0000
2016-04-01 18:30:00 +0000
2016-03-31 18:30:00 +0000
2016-04-01 18:30:00 +0000
2016-04-02 18:30:00 +0000
2016-04-03 18:30:00 +0000
2016-04-04 18:30:00 +0000
2016-04-05 18:30:00 +0000
2016-04-06 18:30:00 +0000
2016-04-07 18:30:00 +0000
2016-04-08 18:30:00 +0000
2016-04-09 18:30:00 +0000
2016-04-10 18:30:00 +0000
2016-04-11 18:30:00 +0000
2016-04-12 18:30:00 +0000
2016-04-13 18:30:00 +0000
2016-04-14 18:30:00 +0000
2016-04-15 18:30:00 +0000
2016-04-16 18:30:00 +0000
2016-04-17 18:30:00 +0000
2016-04-18 18:30:00 +0000
2016-04-19 18:30:00 +0000
2016-04-20 18:30:00 +0000
2016-04-21 18:30:00 +0000
2016-04-22 18:30:00 +0000
2016-04-23 18:30:00 +0000
2016-04-24 18:30:00 +0000
2016-04-25 18:30:00 +0000
2016-04-26 18:30:00 +0000
2016-04-27 18:30:00 +0000
2016-04-28 18:30:00 +0000
2016-04-29 18:30:00 +0000
2016-04-30 18:30:00 +0000
2016-05-01 18:30:00 +0000
2016-05-02 18:30:00 +0000
2016-05-03 18:30:00 +0000
2016-05-04 18:30:00 +0000
2016-05-05 18:30:00 +0000
2016-05-06 18:30:00 +0000
2016-05-07 18:30:00 +0000
2016-05-08 18:30:00 +0000
2016-05-09 18:30:00 +0000
2016-05-10 18:30:00 +0000
2016-05-11 18:30:00 +0000
2016-05-12 18:30:00 +0000
2016-05-13 18:30:00 +0000
2016-05-14 18:30:00 +0000
2016-05-15 18:30:00 +0000
2016-05-16 18:30:00 +0000
2016-05-17 18:30:00 +0000
2016-05-18 18:30:00 +0000
2016-05-19 18:30:00 +0000
2016-05-20 18:30:00 +0000
2016-05-21 18:30:00 +0000
2016-05-22 18:30:00 +0000
2016-05-23 18:30:00 +0000
2016-05-24 18:30:00 +0000
2016-05-25 18:30:00 +0000
2016-05-26 18:30:00 +0000
2016-05-27 18:30:00 +0000
2016-03-12 18:30:00 +0000
2016-03-13 18:30:00 +0000
2016-03-14 18:30:00 +0000
2016-03-15 18:30:00 +0000
2016-03-16 18:30:00 +0000
2016-03-17 18:30:00 +0000
2016-03-18 18:30:00 +0000
2016-03-05 18:30:00 +0000
2016-03-06 18:30:00 +0000
2016-03-07 18:30:00 +0000
2016-03-08 18:30:00 +0000
2016-03-09 18:30:00 +0000
2016-03-10 18:30:00 +0000
2016-03-11 18:30:00 +0000
2016-02-29 18:30:00 +0000
2016-03-01 18:30:00 +0000
2016-03-02 18:30:00 +0000
2016-03-03 18:30:00 +0000
2016-03-04 18:30:00 +0000
2016-02-27 18:30:00 +0000
2016-02-28 18:30:00 +0000
2016-02-29 18:30:00 +0000
2016-03-01 18:30:00 +0000
2016-03-02 18:30:00 +0000
2016-03-03 18:30:00 +0000
2016-03-04 18:30:00 +0000
2016-02-20 18:30:00 +0000
2016-02-21 18:30:00 +0000
2016-02-22 18:30:00 +0000
2016-02-23 18:30:00 +0000
2016-02-24 18:30:00 +0000
2016-02-25 18:30:00 +0000
2016-02-26 18:30:00 +0000
2016-02-13 18:30:00 +0000
2016-02-14 18:30:00 +0000
2016-02-15 18:30:00 +0000
2016-02-16 18:30:00 +0000
2016-02-17 18:30:00 +0000
2016-02-18 18:30:00 +0000
2016-02-19 18:30:00 +0000
2016-02-06 18:30:00 +0000
2016-02-07 18:30:00 +0000
2016-02-08 18:30:00 +0000
2016-02-09 18:30:00 +0000
2016-02-10 18:30:00 +0000
2016-02-11 18:30:00 +0000
2016-02-12 18:30:00 +0000
2016-01-31 18:30:00 +0000
2016-02-01 18:30:00 +0000
2016-02-02 18:30:00 +0000
2016-02-03 18:30:00 +0000
2016-02-04 18:30:00 +0000
2016-02-05 18:30:00 +0000
2016-01-30 18:30:00 +0000
2016-01-31 18:30:00 +0000
2016-02-01 18:30:00 +0000
2016-02-02 18:30:00 +0000
2016-02-03 18:30:00 +0000
2016-02-04 18:30:00 +0000
2016-02-05 18:30:00 +0000
2016-01-23 18:30:00 +0000
2016-01-24 18:30:00 +0000
2016-01-25 18:30:00 +0000
2016-01-26 18:30:00 +0000
2016-01-27 18:30:00 +0000
2016-01-28 18:30:00 +0000
2016-01-29 18:30:00 +0000
2016-01-16 18:30:00 +0000
2016-01-17 18:30:00 +0000
2016-01-18 18:30:00 +0000
2016-01-19 18:30:00 +0000
2016-01-20 18:30:00 +0000
2016-01-21 18:30:00 +0000
2016-01-22 18:30:00 +0000
2016-01-09 18:30:00 +0000
2016-01-10 18:30:00 +0000
2016-01-11 18:30:00 +0000
2016-01-12 18:30:00 +0000
2016-01-13 18:30:00 +0000
2016-01-14 18:30:00 +0000
2016-01-15 18:30:00 +0000
2016-03-12 18:30:00 +0000
2016-03-13 18:30:00 +0000
2016-03-14 18:30:00 +0000
2016-03-15 18:30:00 +0000
2016-03-16 18:30:00 +0000
2016-03-17 18:30:00 +0000
2016-03-18 18:30:00 +0000
2016-03-19 18:30:00 +0000
2016-03-20 18:30:00 +0000
2016-03-21 18:30:00 +0000
2016-03-22 18:30:00 +0000
2016-03-23 18:30:00 +0000
2016-03-24 18:30:00 +0000
2016-03-25 18:30:00 +0000
2016-03-26 18:30:00 +0000
2016-03-27 18:30:00 +0000
2016-03-28 18:30:00 +0000
2016-03-29 18:30:00 +0000
2016-03-30 18:30:00 +0000
2016-03-31 18:30:00 +0000
2016-04-01 18:30:00 +0000
2016-03-31 18:30:00 +0000
2016-04-01 18:30:00 +0000
2016-04-02 18:30:00 +0000
2016-04-03 18:30:00 +0000
2016-04-04 18:30:00 +0000
2016-04-05 18:30:00 +0000
2016-04-06 18:30:00 +0000
2016-04-07 18:30:00 +0000
2016-04-08 18:30:00 +0000
2016-04-09 18:30:00 +0000
2016-04-10 18:30:00 +0000
2016-04-11 18:30:00 +0000
2016-04-12 18:30:00 +0000
2016-04-13 18:30:00 +0000
2016-04-14 18:30:
ipraba commented 8 years ago

Sorry about that. Fixed it here https://github.com/ipraba/EPCalendarPicker/commit/fc89cb66cdcf27c63cc4b7087a903f7e1da96941