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. 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 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"); }
UIGestureRecognizerStateBegan and
UIGestureRecognizerStateEnded
Comments
Post a Comment