Swipe Method is getting called twice
问题 I have to use swipe functionality in my view controller. so, whenever Iam swiping, my swipe method is getting called twice and the NSlogs which I Wrote inside the (swipe:) method is displaying the content two times. Here is the code which i have used. UIView *swipeView=[[UIView alloc]initWithFrame:CGRectMake(405, 420, 265, 35)]; swipeView.backgroundColor=[UIColor clearColor]; [self.view addSubview:swipeView]; UISwipeGestureRecognizer *gesture; gesture=[[UISwipeGestureRecognizer alloc