devinross / tapkulibrary

tap + haiku = tapku, a well crafted open source iOS framework
http://devinross.com/tapku/documentation
MIT License
3.9k stars 653 forks source link

TKCalendarDayEventView and custom colors #260

Open adsyak opened 11 years ago

adsyak commented 11 years ago

Hi, It would be nice to be able to specify a custom color for each TKCalendarDayEventView. In IOS Calendar each kind of events (Private, work etc..) has its own color. Would be nice to have the same thing here. Regards

laszlotuss commented 11 years ago

Add the new property to the header // TKCalendarDayEventView.h typedef enum { // add more colors what you need TKCalendarEventColorBlue // Default } TKCalendarEventColor;

/* This is the color type of the event. / @property (nonatomic) TKCalendarEventColor colorType;

And a new method to set it's color to // TKCalendarDayEventView.m

Pick an online color tool to make similar colors nice: http://mashable.com/2013/01/15/color-scheme-tools/

adsyak commented 11 years ago

Fleshman, thanks for your reply. do you use a specific version ? TKCalendarEventColor is unknow type. Regards

laszlotuss commented 11 years ago

I use a heavily customized older version, and updated my last comment because i forgot that TKCalendarEventColor enum last time :)

adsyak commented 11 years ago

Thanks Fleshman :-)