I would like to add a TapGestureRecognizer to cover the entire screen of the UICollectionViewController, except for the UICollectionViewCell cells.
The closest I got
-(void) viewDidLoad {
...
UITapGestureRecognizer *tapAnywhere = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(addBoard:)];
[self.collectionView addGestureRecognizer:tapAnywhere];
}
Problem. When I click on a cell, the prepareForSegue method is not called. It looks like UITapGestureRecognizer is covering the camera.
Which view in the UICollectionViewController is correct to attach the GestureRecognizer to keep the default click-to-execute function?
Bernd source
share