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

Added a method to customise the marker colours via the data source delegate and to detect long press in the calendar #192

Open superprat opened 12 years ago

superprat commented 12 years ago

Method is - (NSArray ) calendarMonthView:(TKCalendarMonthView)monthView colorsForMarksFromDate:(NSDate )startDate toDate:(NSDate)lastDate

-(void)calendarMonthView:(TKCalendarMonthView )monthView didLongPressDate:(NSDate )date;

fvermeulen commented 12 years ago

You have to put this codeline in src/TapkuLibrary/TKCalendarMonthView.h otherwise it doesn't know the instance method for the selector

TKCalendarMonthView.h

fvermeulen commented 12 years ago

Can you add an Example how to use this? I get errors.

superprat commented 12 years ago

Right you are, I forgot to commit that file

On 10-Oct-2012, at 6:23 PM, Fokke Vermeulen notifications@github.com wrote:

You have to put this codeline in src/TapkuLibrary/TKCalendarMonthView.h otherwise it doesn't know the instance method for the selector

TKCalendarMonthView.h

(NSArray) calendarMonthView:(TKCalendarMonthView)monthView colorsForMarksFromDate:(NSDate)startDate toDate:(NSDate)lastDate; — Reply to this email directly or view it on GitHub.

superprat commented 12 years ago

I'm adding a bit more to customize the type of marker also, will upload a demo soon

On 10-Oct-2012, at 7:14 PM, Fokke Vermeulen notifications@github.com wrote:

Can you add an Example how to use this? I get errors.

— Reply to this email directly or view it on GitHub.

fvermeulen commented 12 years ago

Hey thank you. I think i only need to know, what i have to put in the array.

superprat commented 12 years ago

UIColor object

On 15-Oct-2012, at 3:45 PM, Fokke Vermeulen notifications@github.com wrote:

Hey thank you. I think i only need to know, what i have to put in the array.

— Reply to this email directly or view it on GitHub.

fvermeulen commented 12 years ago

Thank you. It works ;)