[MonoTouch] Wrapper type 'Monotouch.UIKIT.UIActionSheetDelegate' is missing its native Objective C class 'UIActionSheetDelegate'. Please check if its be linked
Jeff Stedfast
jeff at xamarin.com
Thu Oct 6 15:39:52 EDT 2011
Hi,
If you aren't overriding any of the UIActionSheetDelegate methods, what's
the point of instantiating one?
I wonder if UIActionSheetDelegate should be made into an abstract class.
Jeff
On Thu, Oct 6, 2011 at 3:16 PM, Sebastien Pouliot <sebastien at xamarin.com>wrote:
> On Thu, Oct 6, 2011 at 2:57 PM, Andreas Ploetzeneder
> <info at ploetzeneder-it.com> wrote:
> > ok, your snippet is to short :D can u help me with longer one?
>
> sure :)
>
> >>> using System;
> >>> using System.Collections.Generic;
> >>> using System.Linq;
> >>> using MonoTouch.Foundation;
> >>> using MonoTouch.UIKit;
> >>>
> >>> namespace Sepp
> >>> {
>
> public class MyUIActionSheetDelegate : UIActionSheetDelegate { }
>
> >>> public class HaupttabelleDelegate : UITableViewDelegate
> >>> {
> >>> private Haupttabelle _controller;
> >>>
> >>> public HaupttabelleDelegate(Haupttabelle controller)
> >>> {
> >>> _controller = controller;
> >>> z= new UIActionSheetDelegate();
>
> // remove line above
> z = new MyUIActionSheetDelegate ();
>
> >>> }
> >>>
> >>> 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());
> >>> }
> >>> }
> >>>
> >>> }
>
> Sebastien
>
> p.s. If that does not work (it could be unrelated to bug #769) then
> please open a bug report and attach a small, self-contained, test
> case.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111006/738b7204/attachment-0001.html
More information about the MonoTouch
mailing list