[MonoTouch] Wrapper type 'Monotouch.UIKIT.UIActionSheetDelegate' is missing its native Objective C class 'UIActionSheetDelegate'. Please check if its be linked
Sebastien Pouliot
sebastien at xamarin.com
Thu Oct 6 14:56:16 EDT 2011
Hello Andreas,
This looks like a duplicate of bug #769
http://bugzilla.xamarin.com/show_bug.cgi?id=769
The workaround (until new releases) is to create and use your own type, e.g.
class MyUIActionSheetDelegate : UIActionSheetDelegate { }
...
x.Delegate = new MyUIActionSheetDelegate ();
Regards,
Sebastien
On Thu, Oct 6, 2011 at 2:51 PM, Andreas Ploetzeneder
<info at ploetzeneder-it.com> wrote:
> Wrapper type 'Monotouch.UIKIT.UIActionSheetDelegate' is missing its
> native Objective C class 'UIActionSheetDelegate'. Please check if its
> be linked
>
> whats wrong here?
>
> ------------------
>
>
>
> using System;
> using System.Collections.Generic;
> using System.Linq;
> using MonoTouch.Foundation;
> using MonoTouch.UIKit;
>
> namespace Sepp
> {
> public class HaupttabelleDelegate : UITableViewDelegate
> {
> private Haupttabelle _controller;
>
> public HaupttabelleDelegate(Haupttabelle controller)
> {
> _controller = controller;
> z= new UIActionSheetDelegate();
> }
>
> Detailtabelle x;
> UIActionSheet y;
> UIActionSheetDelegate z;
> public override void RowSelected (UITableView tableView,
> NSIndexPath indexPath)
> {
> y = new UIActionSheet("Frage",z,"Abbrechen",null,"Bestätigen mit
> Kommentar","Bestätigen");
> y.CancelButtonIndex=2;
> y.Clicked+= delegate(object sender, UIButtonEventArgs e) {
> switch (e.ButtonIndex) {
> case 0:
>
> System.Diagnostics.Debug.WriteLine("Bestaetigen mit Kommentar");
> break;
> case 1:
>
> System.Diagnostics.Debug.WriteLine("Bestaetigen ");
> break;
> case 2:
>
> System.Diagnostics.Debug.WriteLine("Abbrechen ");
> break;
> }};
> y.ShowInView(_controller.View);
> System.Diagnostics.Debug.WriteLine("Zeile:"+indexPath.Row.ToString());
> }
> }
>
> }
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
More information about the MonoTouch
mailing list