#import <UIKit/UIKit.h>
@interface CustomNavigationController : UINavigationController<UINavigationControllerDelegate>
@end
#import "CustomNavigationController.h"
@interface CustomNavigationController ()<UIGestureRecognizerDelegate>
@property(nonatomic,weak) UIViewController* currentShowViewController;
@end
@implementation CustomNavigationController
-(id)initWithRootViewController:(UIViewController *)rootViewController{
CustomNavigationController* nvc = [super initWithRootViewController:rootViewController];
self.interactivePopGestureRecognizer.delegate = self;
nvc.delegate = self;
return nvc;
}
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
}
-(void)navigationController:(UINavigation