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

Swift 3 Event handlers for calendar?

1 Answer 51 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 19 Dec 2016, 07:54 PM

    Good Afternoon

 

This is the handler I have a question about

  func calendar(calendar: TKCalendar, eventsForDate date: Date) -> [AnyObject]? {

}

 

I am getting messages 'Instance method xxxxxx nearly matches optional requirement. What is the correct method I want to implement? Id recommend you guys to a look at the documentation. It might be a little outdated.

 

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 20 Dec 2016, 09:36 AM
Hi James,

Thank you for writing.
Thank you for bringing our attention to this issue. Indeed the method signature is outdated in the documentation and we are going to fix it. Here is the correct signature:
func calendar(_ calendar: TKCalendar, eventsFor date: Date) -> [Any]? {
      
    }
I hope this helps.

Regards,
Adrian
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
James
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or