UINavigationController(FWFullscreenPopGesture)

@interface UINavigationController (FWFullscreenPopGesture)

导航栏全屏返回手势分类,兼容shouldPopController返回拦截方法

  • 是否启用导航栏全屏返回手势,默认NO。启用时系统返回手势失效,禁用时还原系统手势。如果只禁用系统手势,设置interactivePopGestureRecognizer.enabled即可

    Declaration

    Objective-C

    @property (nonatomic) BOOL fw_fullscreenPopGestureEnabled;
  • 导航栏全屏返回手势对象

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NS_REFINED_FOR_SWIFT UIPanGestureRecognizer *fw_fullscreenPopGestureRecognizer;
  • 判断手势是否是全局返回手势对象

    Declaration

    Objective-C

    + (BOOL)fw_isFullscreenPopGestureRecognizer:
        (nonnull UIGestureRecognizer *)gestureRecognizer;