Newer
Older
XinYang_IOS / build / Debug-iphoneos / ZXNavigationBar / ZXNavigationBar.framework / Headers / ZXNavigationBarNavigationController.h
@zhangfeng zhangfeng on 7 Dec 1 KB 1.9.0
//
//  ZXNavigationBarNavigationController.h
//  ZXNavigationBar
//
//  Created by 李兆祥 on 2020/5/29.
//  Copyright © 2020 ZXLee. All rights reserved.
//  https://github.com/SmileZXLee/ZXNavigationBar
//  V1.4.1

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZXNavigationBarNavigationController : UINavigationController

/**
 是否禁用push控制器自动隐藏tabbar
 */
@property (assign, nonatomic)BOOL zx_disableAutoHidesBottomBarWhenPushed;

/**
pop返回手势对象
*/
@property (strong, nonatomic, readonly) UIPanGestureRecognizer *zx_popGestureRecognizer;

/**
 是否禁用全屏pop手势,若禁用,则pop触发范围为屏幕宽度的十分之一
 */
@property (assign, nonatomic)BOOL zx_disableFullScreenGesture;


/**
 pop手势的触发范围比例,0-1,默认为1,即代表全屏触发
 */
@property (assign, nonatomic) CGFloat zx_popGestureCoverRatio;

/**
 监听自定义pop手势进度。currentViewController代表当前正在pop的控制器,popOffsetProgress范围为0-1,0代表即将开始pop,1代表完成pop
 */
@property(copy, nonatomic)void(^zx_handleCustomPopGesture)(UIViewController *currentViewController,CGFloat popOffsetProgress);

/**
pop手势是否支持多层级的手势同时触发,默认为否
*/
@property(copy, nonatomic)BOOL(^zx_popGestureShouldRecognizeSimultaneously)(UIGestureRecognizer *otherGestureRecognizer);

/**
 拦截导航控制器侧滑返回手势,若返回NO,则禁止pop;
 topViewController:当前控制器
*/
@property(copy, nonatomic)BOOL(^zx_navHandlePopGestureBlock)(UIViewController *topViewController);
@end

NS_ASSUME_NONNULL_END