Glow-Inc / GLCalendarView

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

Not showing monthCoverAttributes on scroll #11

Closed IbrahimYildirim closed 9 years ago

IbrahimYildirim commented 9 years ago

I'am using GLCalendarView with Xcode 7 and Swift 2. Everything seems to be working fine, except the labels for the months that is supposed to show up when you scroll.

I have set the monthCoverAttributes in the AppDelegate.

GLCalendarView.appearance().monthCoverAttributes = [NSFontAttributeName: UIFont(name: "Lato-Semibold", size: 19)!, NSForegroundColorAttributeName: UIColor.blackColor()]

(Doesn't work even when i don't set the monthCoverAttributes)

Anyone facing same issue? Am I doing something wrong?

codingmoh commented 9 years ago

Did you fix up the issue? I am basically running into the same trouble using ObjC Code as well.

ltebean commented 9 years ago

It works fine in the demo, can you debug the code to see what's wrong with it, it's in GLCalendarMonthCoverView line 47

codingmoh commented 9 years ago

It does not even fire.... when should it fire?

codingmoh commented 9 years ago

Okay, got it, you should have to fire calendarView.reload. So it gets displayed.

ltebean commented 9 years ago

Cool, then I will close this issue