InvalidCastException in TelerikUIExamplesInCSharp

2 posts, 0 answers
  1. Martin
    Martin avatar
    14 posts
    Member since:
    Jan 2008

    Posted 15 Jan 2015 Link to this post

    Hi

    As advised in Ticket 883426, I have cloned https://github.com/telerik/ios-sdk/tree/master/TelerikUIExamplesInCSharp. However, when I run the C# Calendar examples and I select "Calendar with events", I get the following exception:

    System.InvalidCastException: Unable to cast object of type 'TelerikUI.TKCalendarPresenterWrapper' to type 'TelerikUI.TKCalendarMonthPresenter'.<br>  at Examples.CalendarWithEvents.ViewDidLoad () [0x00125] in <redacted>Telerik/ios-sdk/TelerikUIExamplesInCSharp/Examples/Calendar/CalendarWithEvents.cs:65<br>  at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)<br>  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62<br>  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46<br>  at Examples.Application.Main (System.String[] args) [0x00008] in <redacted>Telerik/ios-sdk/TelerikUIExamplesInCSharp/Main.cs:17


     I am using version 2014.3.1022.0 of the Tekerik.Xamarin.iOS lib

    Thanks

    Martin
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 15 Jan 2015 Link to this post

    Hi Martin,

    Thank you for contacting us.

    I confirm the observed issue. We found that this issue appears because the latest release of mono touch changed the way how Objective-C protocols are handled. We are in contact with Xamarin representatives and we are investigating how to resolve the issue. 

    Please note that the latest version of our Xamarin examples is located in xamarin-sdk repository. The ios-sdk repository will contain only native iOS SDK examples in future.

    Should you have any other questions, we will be glad to help.

    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.

     
  3. DevCraft banner
Back to Top