I would like to hide and show the navigation bar on tap like the one in the photos app
BUT without losing the functionality of the MKMapView. the user should still be able to double tap for zoom, pinch and zoom and be able to select annotations.
I tried it with:
UITapGestureRecognizer* tapRec = [[UITapGestureRecognizer alloc]
initWithTarget:self action:@selector(hideBar:)];
[self.myMKMapView addGestureRecognizer:tapRec];
[tapRec release];
But then the user can’t select annotations anymore!And it also hides on double taps.
Any ideas ?
I know, it’s almost exactly one year too late, but I hope somebody can make a use of it. Here’s how I did it, based on @Cocoanetics’s answer:
…
…
Swift