예제 #1
0
 public virtual void PerformSelector(MonoTouch.ObjCRuntime.Selector sel,
                                     NSObject arg1, NSObject arg2)
 {
     if (this.IsDirectBinding)
     {
         void_objc_msgSend_intptr_intptr_intptr(this.Handle,
                                                Selector.GetHandle("performSelector:withObject:withObject:"),
                                                sel.Handle, arg1.Handle, arg2.Handle);
     }
     else
     {
         void_objc_msgSendSuper_intptr_intptr_intptr(this.SuperHandle,
                                                     Selector.GetHandle("performSelector:withObject:withObject:"), sel.Handle,
                                                     arg1.Handle, arg2.Handle);
     }
 }
 public override bool CanPerformAction(UICollectionView collectionView, MonoTouch.ObjCRuntime.Selector action, NSIndexPath indexPath, NSObject sender)
 {
     return(true);
 }
 public override void PerformAction(UICollectionView collectionView, MonoTouch.ObjCRuntime.Selector action, NSIndexPath indexPath, NSObject sender)
 {
     Console.WriteLine("code to perform action");
 }