From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 12 Jul 2018 13:44:34 +0800 Subject: [PATCH] bug修复和功能优化 --- screendisplay/screendisplay/Classes/Base/BaseControllers/LMJNavigationController.m | 70 +++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJNavigationController.m b/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJNavigationController.m new file mode 100755 index 0000000..b280064 --- /dev/null +++ b/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJNavigationController.m @@ -0,0 +1,70 @@ +// +// LMJNavigationController.m +// PLMMPRJK +// +// Created by NJHu on 2017/3/31. +// Copyright �� 2017��� GoMePrjk. All rights reserved. +// + +#import "LMJNavigationController.h" + +@interface LMJNavigationController () + +/** ������������������������������������������ */ +//@property (nonatomic, strong) id popGesDelegate; + +@end + +@implementation LMJNavigationController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.navigationBar.hidden = YES; + + + [self setupPOPGes]; +} +/* +#pragma mark - ������������������------------BEGIN---- +- (void)getSystemGestureOfBack +{ + // ���������������pop������ + UIPanGestureRecognizer *panGes = [[UIPanGestureRecognizer alloc] initWithTarget:self.interactivePopGestureRecognizer.delegate action:NSSelectorFromString(@"handleNavigationTransition:")]; + + [self.view addGestureRecognizer:panGes]; + + panGes.delegate = self; + + // ��������������������� + self.interactivePopGestureRecognizer.enabled = NO; + +} + + +- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer +{ + // ��������������������������� + return self.childViewControllers.count > 1; +} +#pragma mark - ������������������------------END---- +*/ + +- (void)setupPOPGes +{ + self.fd_viewControllerBasedNavigationBarAppearanceEnabled = NO; +} + +- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated +{ +// if (self.childViewControllers.count != 0) { +// viewController.hidesBottomBarWhenPushed = YES; +// } + + [super pushViewController:viewController animated:animated]; +} + + +@end + + -- Gitblit v1.8.0