locked
Error: Registrar found a signature mismatch... RRS feed

  • Question

  • User28603 posted

    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:


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


    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!!

    Friday, June 27, 2014 5:15 PM

All replies

  • User181 posted

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

    Friday, June 27, 2014 6:21 PM