mercredi 6 mai 2015

I want to remove gesture when i click on object of a classsssss

From my side I will try bellow code ,but it is not working . Please help me - (void) handleTouch:(UITapGestureRecognizer *) gesture { CGPoint touchPoint = [gesture locationInView:self.view];

   NSArray *viewsAtPoint = [self viewsAtPoint:touchPoint];

   for(TheifView * aView in viewsAtPoint)
   {
     [aView removeFromSuperview];
   }
}

Aucun commentaire:

Enregistrer un commentaire