You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It handles navigation bar transition properly when using fullscreen gesture to push or pop a view controller:
with bar -> without bar
without bar -> with bar
without bar -> without bar
This opmiziation is enabled by default, from now on you don't need to call UINavigationController's -setNavigationBarHidden:animated: method, instead, use view controller's specific API to hide its bar:
If you want to use fullscreen pop gesture in ViewController with scrollView or subclass of scrollView , you should customize the scrollView or subclass of scrollView and overload the gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer: method . like this:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
if (self.contentOffset.x <= 0) {
if ([otherGestureRecognizer.delegate isKindOfClass:NSClassFromString(@"_FDFullscreenPopGestureRecognizerDelegate")]) {
returnYES;
}
}
returnNO;
}
Installation
Use CocoaPods
pod'FDFullscreenPopGesture','1.1'
Release Notes
1.1 - View controller based navigation bar appearance and transition. 1.0 - Fullscreen pop gesture.
License
MIT
About
A UINavigationController's category to enable fullscreen pop gesture with iOS7+ system style.