Glow-Inc / GLCalendarView

A fully customizable calendar view acting as a date range picker
MIT License
855 stars 106 forks source link

Binding returning nil #16

Closed rick2ricks closed 9 years ago

rick2ricks commented 9 years ago

Hi , i am having trouble while trying to bind a [String] to a range. it returns nil , is that a bug ? or am i missing something ?

thanks

ltebean commented 9 years ago

Because currently the DateRange instance holds a weak reference to the binding object. The reason for making it a weak reference is: usually we would load the model in the view controller, keep a strong reference to them, and the binding field is just for easy access to the model

ltebean commented 9 years ago

I will consider to make it a strong reference. But with the current version, you have to keep a strong reference to that [String]

rick2ricks commented 8 years ago

ohh i see, thank you. Nice calendar by the way.