Error: Registrar found a signature mismatch...

stesvisstesvis USMember ✭✭✭
edited June 2014 in Xamarin.iOS

After upgrading to the latest Xamarin.iOS version I can NOT deploy to an actual device (iPhone or iPad), but I CAN deploy to the simulator because of the following errors:


<br /> Error 1 MT4117:The registrar found a signature mismatch in the method '<myClass>.SlideStopped' - the selector 'slideAnimationFinished:' indicates the method takes 1 parameters, while the managed method has 0 parameters.<br />
<br /> Error 2 MT4117:The registrar found a signature mismatch in the method '<myOtherCLass>.OnCellLongPress' - the selector 'LongPressSelector' indicates the method takes 0 parameters, while the managed method has 1 parameters.<br />


What I was trying to do was to implement slide animations like in this example, and a long press event.

It worked fine before, and it still works on a simulator. Like in the example, this is my code:

        [Export("slideAnimationFinished:")]
        void SlideStopped()
        {
        }

and

        [Export("LongPressSelector")]
        protected void OnCellLongPress(UILongPressGestureRecognizer sender)
        {
                if (sender.State == UIGestureRecognizerState.Began)
                {
                    MyCell cell = (MyCell)sender.View;
                    ShowQuickMenu(cell);
                }
        }

My question is, how do I change the code above to make it work again?

Thanks!!

Posts

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Remove the colon in "slideAnimationFinished:" (=> "slideAnimationFinished") and add one to "LongPressSelector" (=> "LongPressSelector:").

Sign In or Register to comment.