ipad - Swipe Method is getting called twice -


I have to use the swipe functionality in my visual controller, so whenever I swaping Iam, my swipe method says twice And NSLG, which I have written in (Swipe :) method, is displaying content twice.

Here's the code that I have used. UIView * swipeview = [[UIView alloc] initWithFrame: CGRectMake (405, 420, 265, 35)]; SwipeView.backgroundColor = [UIColor clearColor]; [Self.view addSubview: swipeview]; UISwipeGestureRecognizer * Hint; Hint = [[UISwipeGestureRecognizer alloc] initWithTarget: Self-action: @Selector (swipe :)); [Gesture set guidelines: (UISwipstaZensteinExchangeRightright)]; [SwipeView addGestureRecognizer: gesture]; [Gesture release]; [SwipeView release]; - (zero) Swipe: (UISwipeGestureRecognizer *) Identifier {NSLog (@ "Swipe received."); NSLog (@ "hij"); }

Please tell me what I have to do to call this once.

This is going to happen, you need to see the property where you have to UIGestureRecognizerStateBegan and UIGestureRecognizerStateEnded

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -