CCMPopup icon indicating copy to clipboard operation
CCMPopup copied to clipboard

Unable to dismiss while touched outside

Open Zumbalamambo opened this issue 8 years ago • 0 comments

I have got the following code.

  • (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UITapGestureRecognizer *singleFingerTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; [self.border addGestureRecognizer:singleFingerTap]; }

//The event handling method

  • (void)handleSingleTap:(UITapGestureRecognizer *)recognizer { [self dismissViewControllerAnimated:YES completion:nil]; }

self.border is the CCMBorderView. i want to dismiss the current view controller when touched outside the ccmborderview. But it is not dismissing.

Zumbalamambo avatar Dec 31 '16 06:12 Zumbalamambo