ruslanskorb / RSDayFlow

iOS 7+ Calendar (Date Picker) with Infinite Scrolling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-(UIColor *)dayOffOfWeekLabelTextColor

asterhouse opened this issue · comments

The issue I'm having is that I can't customize the color of the day off label. I set breakpoints and the overridden getters do get called, but I don't see the color change. The colors are the correct values when called but they won't change in the date picker. Do you have any tips or maybe a better way of writing my overridden daysOfWeekView class? Here is my code below.

static UIColor *weekendColor;
static UIColor *weekdayColor;

+(void)setWeekendColor:(UIColor *)color {
    @synchronized(self) {
        weekendColor = color;
    }
}

+(void)setWeekdayColor:(UIColor*)color {
    @synchronized(self) {
        weekdayColor = color;
    }
}


-(UIColor *)dayOffOfWeekLabelTextColor {
    return weekendColor;
}

-(UIColor *)dayOfWeekLabelTextColor {
    return weekdayColor;
}

I'm sorry for posting here. I misread the use for DaysOfWeekView. I needed to change label color for datePickerDayCell.