tapkulibrary icon indicating copy to clipboard operation
tapkulibrary copied to clipboard

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

Open superprat opened this issue 12 years ago • 7 comments

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

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

superprat avatar Oct 05 '12 21:10 superprat

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;

fvermeulen avatar Oct 10 '12 12:10 fvermeulen

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

fvermeulen avatar Oct 10 '12 13:10 fvermeulen

Right you are, I forgot to commit that file

On 10-Oct-2012, at 6:23 PM, Fokke Vermeulen [email protected] 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 avatar Oct 10 '12 19:10 superprat

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 [email protected] wrote:

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

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

superprat avatar Oct 10 '12 19:10 superprat

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

fvermeulen avatar Oct 15 '12 10:10 fvermeulen

UIColor object

On 15-Oct-2012, at 3:45 PM, Fokke Vermeulen [email protected] 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.

superprat avatar Oct 15 '12 10:10 superprat

Thank you. It works ;)

fvermeulen avatar Oct 15 '12 10:10 fvermeulen