hi,
My existing app was working great and now i just rebuilt in a following environment
nuclios 2015 v2 and vs.net 2015 and xcode 7.1 on a MAC.
I am crushing every time I click on appointment, so i traced it down to override of AppointmentTapped.
public override void AppointmentTapped(IGCalendarView calView, IGCalendarAppointment appt, IGCalendarAppointmentDataSource dataSource, CGRect rect, NSDate date)
I never break there but if I comment out the override I can click on appointment and there is no problem, putting it back causing crush with the following error:
System.MissingMethodException: Method 'NSMutableDictionary.get_Item' not found.
What could be possibly wrong?
Thank you
Mark
Hi Mark,
I've linked a sample project. Feel free to test it out and let us know if you have any issues.
Additionally, I had a similar problem this morning to what you mentioned on a separate Xamarin project, the only thing that would fix it was to create a new iOS solution and copy your source code to the new project. The reason for this is the old projects that use the monotouch assembly reference no longer appear to work in Xamarin. This is outside what we can support, but I thought I'd share that information with you.
Hi Torrey,
Day and a half later - same problem, regenerating project files did not help, but here is what I came up with.
Take your example, it has an empty body for AppointmentTapped override, just add the following lines to it and you will crsuh the same way I do w/o even hitting the override.
public override void AppointmentTapped (IGCalendarView calView, IGCalendarAppointment appt, IGCalendarAppointmentDataSource dataSource, CoreGraphics.CGRect rect, Foundation.NSDate date) { var appProp = new NSString(@"Appt"); var miscParam = appt.MiscProperties[appProp]; }
use of MiscProperties is a problem. (used to work fine before xcode 7, latest xamarin and 2015 v2 of Infragistics)
Any suggestions?
I did exactly as you mentioned and didn't experience any crash. I've also linked a video demonstrating my test and at the end of the video show the Xamarin Studio version number.
Please try attached is your sample project with additional line that causing a crush from vs.net 2013 (or 2015) not from xamarin studio on a mac
https://www.dropbox.com/s/xmmab1i0i7qu26j/testingApptTap.zip?dl=0
i am suing vs.net 2013 (tried 2015 - no difference),
Xamarin.iOSVersion: 9.0.1.29 (Enterprise Edition)Hash: 1d27ac2Branch: masterBuild date: 2015-09-25 18:08:44-0400
nuclios IG.unified 2015 v12 (runtime version v4.0.30319)
Torrey,
forgot to mention - it does work from xamarin studio on a mac, the problem I am having is using vs.net that using the same exactly mac as a build host.
Replacing problematic line:
var miscParam = appt.MiscProperties[new NSString(@"Appt")] as NsObjectWrapper;
with: NSObject result; appt.MiscProperties.TryGetValue(new NSString(@"Appt"), out result);
fixed my problem.