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

InvalidCastException in TelerikUIExamplesInCSharp

1 Answer 61 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 15 Jan 2015, 11:35 AM
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

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 15 Jan 2015, 12:48 PM
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.

 
Tags
Calendar & Scheduling
Asked by
Martin
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or