Ei kuvausta

FKNavigationController.m 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // FKNavigationController.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/9/2.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import "FKNavigationController.h"
  9. @interface FKNavigationController ()
  10. <UINavigationControllerDelegate>
  11. @end
  12. @implementation FKNavigationController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. // Do any additional setup after loading the view.
  16. // WeakSelf(weakSelf);
  17. // if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
  18. // self.interactivePopGestureRecognizer.delegate = weakSelf;
  19. // self.delegate = weakSelf;
  20. // }
  21. }
  22. - (void)didReceiveMemoryWarning {
  23. [super didReceiveMemoryWarning];
  24. // Dispose of any resources that can be recreated.
  25. }
  26. /*
  27. #pragma mark - Navigation
  28. // In a storyboard-based application, you will often want to do a little preparation before navigation
  29. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  30. // Get the new view controller using [segue destinationViewController].
  31. // Pass the selected object to the new view controller.
  32. }
  33. */
  34. //- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
  35. // if ( [self respondsToSelector:@selector(interactivePopGestureRecognizer)] && animated == YES ) {
  36. // self.interactivePopGestureRecognizer.enabled = NO;
  37. // }
  38. // [super pushViewController:viewController animated:animated];
  39. //}
  40. //
  41. //- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated {
  42. // if ( [self respondsToSelector:@selector(interactivePopGestureRecognizer)] && animated == YES ) {
  43. // self.interactivePopGestureRecognizer.enabled = NO;
  44. // }
  45. // return [super popToRootViewControllerAnimated:animated];
  46. //
  47. //}
  48. //
  49. //- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated {
  50. // if( [self respondsToSelector:@selector(interactivePopGestureRecognizer)] ) {
  51. // self.interactivePopGestureRecognizer.enabled = NO;
  52. // }
  53. // return [super popToViewController:viewController animated:animated];
  54. //}
  55. #pragma mark UINavigationControllerDelegate
  56. //- (void)navigationController:(UINavigationController *)navigationController
  57. // didShowViewController:(UIViewController *)viewController
  58. // animated:(BOOL)animate {
  59. // if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
  60. // self.interactivePopGestureRecognizer.enabled = YES;
  61. // }
  62. //}
  63. //
  64. //
  65. //-(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
  66. // if ( gestureRecognizer == self.interactivePopGestureRecognizer ) {
  67. // if ( self.viewControllers.count < 2
  68. // || self.visibleViewController == [self.viewControllers objectAtIndex:0] ) {
  69. // return NO;
  70. // }
  71. // }
  72. // return YES;
  73. //}
  74. @end