Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Change in selector behaviour between 7.2.0 and 7.2.1

$
0
0

Hi,

Not sure how to fix a problem that has cropped up in my code between 7.2.0 and 7.2.1. In 7.2.0 this worked

var tgrRemove = new UISwipeGestureRecognizer
{
    NumberOfTouchesRequired = 1,
    Direction = UISwipeGestureRecognizerDirection.Right,
};
tgrRemove.AddTarget(this, new Selector("screenSwipe"));

[Export("screenSwipe")]
public void SwipeRemove(UIGestureRecognizer s)
{
    var swipe = s as UIGestureRecognizer;

since moving to 7.2.1 I'm getting an error that screenSwipe takes a single parameter, but the target sends none across.

Is this a regression, a correction and in any case, how do I correct this code so it works. I've seen a lot of examples on stack overflow, but none of them really help.

Paul


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>