Instance Property

barHideOnTapGestureRecognizer

The gesture recognizer used to hide and show the navigation and toolbar.

Declaration

@property(nonatomic, readonly, assign) UITapGestureRecognizer *barHideOnTapGestureRecognizer;

Discussion

This property contains the gesture recognizer used to hide or show the bars. The gesture recognizer is inactive unless the hidesBarsOnTap property is YES. You can make changes to the gesture recognizer as needed but must not change its delegate and you must not remove the default target object and action that come configured with it. Do not try to replace this gesture recognizer by overriding the property.

If you tie this gesture recognizer to one of your own, make sure both recognize their gestures simultaneously to ensure that each has a chance to handle the event.

See Also

Hiding the Navigation Bar

hidesBarsOnTap

A Boolean value indicating whether the navigation controller allows hiding of its bars using a tap gesture.

hidesBarsOnSwipe

A Boolean value indicating whether the navigation bar hides its bars in response to a swipe gesture.

hidesBarsWhenVerticallyCompact

A Boolean value indicating whether the navigation controller hides its bars in a vertically compact environment.

hidesBarsWhenKeyboardAppears

A Boolean value indicating whether the navigation controller hides its bars when the keyboard appears.

navigationBarHidden

A Boolean value that indicates whether the navigation bar is hidden.

barHideOnSwipeGestureRecognizer

The gesture recognizer used to hide the navigation bar and toolbar.