This is a migrated thread and some comments may be shown as answers.

How to customize a cell based on its date

1 Answer 44 Views
Calendar - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 31 Jan 2015, 02:05 PM
I need to customize a cell based on the date it represents. Neither void UpdateVisualsForCell (TKCalendar calendar, TKCalendarCell cell) nor  TKCalendarCell ViewForCellOfKind (TKCalendar calendar, TKCalendarCellType cellType) allows me to do this. 

Ideally I would like to override a method similar to TKCalendarEvent[] EventsForDate (TKCalendar calendar, NSDate date) (something like TKCalendarCell ViewForCell (TKCalendar calendar, NSDate date)). Or is there some other way to do this?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 02 Feb 2015, 08:22 AM
Hello Martin,

You can use the calendar:updateVisualsFoCell: method in this case. The day cell has a property date, you can use this property to determine the date and customize it accordingly. The technique is demonstrated in this help article. You just need to change the condition with one based on the date property.

I hope this helps.

Regards,
Jack
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar - Xamarin.iOS
Asked by
Martin
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or