I'm testing the code below, from the WROX book sample Mapping05 (find it here)
UIButton rightCallout = UIButton.FromType (UIButtonType.DetailDisclosure);
rightCallout.TouchDown += delegate {
//NSUrl url = new NSUrl ("http://wrox.com/");
//if (!UIApplication.SharedApplication.OpenUrl (url)) {
// System.Console.WriteLine ("Sorry, can't open url");
//}
ShowAlert("iPad", "TouchDown");
};
pinView.RightCalloutAccessoryView = rightCallout;
But it fails: Debug info from gdb:
/tmp/mono-gdb-commands.n8GR64:1: Error in sourced command file: unable to debug self
================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries
used by your application.
Any suggestions? I'm running the latest version on Monotouch, MonoDevelop and SDK 4.2