Datasource and multiple calendars

Thread is closed for posting
2 posts, 0 answers
  1. Jeff
    Jeff avatar
    1 posts
    Member since:
    Nov 2014

    Posted 02 Nov 2014 Link to this post

    I added this to your EventKit data binding example code - shouldn't it produce an array of the available local calendars on the phone?

    self.dataSource = [TKCalendarEventKitDataSource new];
        self.dataSource.delegate = self;
        NSLog(@"Calendars = %@",self.dataSource.calendars);

    I need to be able to use the standard calendar plus a user created calendar, as an option.

  2. Adrian
    Adrian avatar
    174 posts

    Posted 05 Nov 2014 Link to this post

    Hi Jeff,

    Thank you for contacting us.

    TKCalendarEventKitDataSource's calendars property returns an array containing the available calendars on the phone, however the calendars are fetched asynchronously which causes the issue. Possible solution is to slow down the thread a bit while the calendars are being fetched. Please consider the following code snippet:
    NSArray *calendars = self.dataSource.calendars;
    [NSThread sleepForTimeInterval:0.5];
    NSLog(@"%lu", calendars.count);

    The issue will be addressed in our next release which is scheduled for the end of this month. I logged it in our feedback portal. Feel free to vote/comment. I updated also your Telerik points for reporting the issue.

    If you need further assistance, I will be glad to help.


    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.

Back to Top