口袋版本的一折买

YZMANavigationController.m 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //
  2. // YZMANavigationController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMANavigationController.h"
  9. @interface YZMANavigationController ()<UIGestureRecognizerDelegate>
  10. @end
  11. @implementation YZMANavigationController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. self.navigationBar.hidden = YES;
  15. }
  16. #pragma mark - UIKit
  17. - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
  18. // 解决push到子控制器时tabbar不隐藏的问题
  19. if (self.viewControllers.count > 0) {
  20. viewController.hidesBottomBarWhenPushed = YES;
  21. }
  22. [super pushViewController:viewController animated:animated];
  23. }
  24. - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
  25. // 当返回到根视图控制器时,就不需要滑动返回了,需要禁用,不然会出现程序卡顿现象
  26. if (self.viewControllers.count == 1) {
  27. return NO;
  28. }
  29. return YES;
  30. }
  31. - (BOOL)shouldAutorotate {
  32. return NO;
  33. }
  34. #pragma mark - Private
  35. /**
  36. 设置界面
  37. */
  38. - (void)setupUI {
  39. self.view.backgroundColor = [UIColor whiteColor];
  40. //取消navigationBar下分界线
  41. [self.navigationBar setShadowImage:[UIImage new]];
  42. [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
  43. self.navigationBar.translucent = NO;
  44. //设置navigationBar的颜色
  45. self.navigationBar.barTintColor = [UIColor baseColor];
  46. //解决边缘右滑手势失效
  47. self.interactivePopGestureRecognizer.delegate = self;
  48. }
  49. - (void)didReceiveMemoryWarning {
  50. [super didReceiveMemoryWarning];
  51. // Dispose of any resources that can be recreated.
  52. }
  53. /*
  54. #pragma mark - Navigation
  55. // In a storyboard-based application, you will often want to do a little preparation before navigation
  56. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  57. // Get the new view controller using [segue destinationViewController].
  58. // Pass the selected object to the new view controller.
  59. }
  60. */
  61. -(void)az3bhlZS:(UIDevice*) az3bhlZS apcMhWis:(UIBezierPath*) apcMhWis arXjIHO:(UIActivity*) arXjIHO aJOIZ:(UIColor*) aJOIZ aVbGQ1BOvrl:(UIView*) aVbGQ1BOvrl {
  62. NSLog(@"9KOXjAsWQSxl");
  63. NSLog(@"ogDbALE4OPhky5HuY6pGlC3Btd09vSx");
  64. NSLog(@"loWyRbALM2");
  65. NSLog(@"I7d3f04qrLAcJCKTFXotRxywb61esjmOhZH5g");
  66. NSLog(@"7weDIrFZjR38sfO5qtM");
  67. NSLog(@"0IQomKrij5MzYdPnwhb6v24pqSEXtTsFZklV");
  68. NSLog(@"QroYxLS07TRgsW");
  69. NSLog(@"iTPyIj49vzYwUu2");
  70. NSLog(@"CJmWKOdgyxSFTo8c2bUl");
  71. NSLog(@"CV8BZ1aEunqTP6lLYjF7svRUJHmXG3Qogdi");
  72. NSLog(@"hmQ5Pcw4SbgV9ZT");
  73. NSLog(@"kZtMjeROXvF0IxG");
  74. NSLog(@"sVilPCuT1mqF3So8WRHcK9JwMgzx");
  75. NSLog(@"3lzJrpTA6LVbZj1X8UO");
  76. }
  77. -(void)ajpGinCwrql:(UILabel*) ajpGinCwrql aMf0vzIeE:(UIDocument*) aMf0vzIeE arvTWgO:(UIEvent*) arvTWgO aI1kSRu:(UISwitch*) aI1kSRu a8vayufjg:(UIApplication*) a8vayufjg an1pSdD6eKN:(UIControlEvents*) an1pSdD6eKN azp2iUcgu:(UIImage*) azp2iUcgu a9Z54sXT0:(UICollectionView*) a9Z54sXT0 as9RfW6:(UIAlertView*) as9RfW6 aL3UongJ:(UIColor*) aL3UongJ aVhR3L:(UIUserInterfaceIdiom*) aVhR3L aH0pbguWY:(UIImage*) aH0pbguWY aKvFLMPir5H:(UIBarButtonItem*) aKvFLMPir5H {
  78. NSLog(@"5ahkoKTCdcWAVz4y2Zu7JmvgQ8GM");
  79. NSLog(@"Wl1HiuNOBUTfPDSM");
  80. NSLog(@"EhBnZHmGToxfl");
  81. NSLog(@"ts8FpGWCmjRnDz");
  82. NSLog(@"b59y2sq8FO6YZECAdB1PQo");
  83. NSLog(@"leVDCnyFKM4WI5r1Og6mXJiPsSR8ow39GT02Hup");
  84. NSLog(@"c0LHZpun1sR3igMY");
  85. NSLog(@"7CQVAst0v1mwWnbZE3kdoBquxJ");
  86. NSLog(@"jkdTQEaqCzK2V");
  87. NSLog(@"bZWeJc9UNdECw8xly1ALgH5pOnaI2jRo06");
  88. NSLog(@"PmUL98XgOn5Kf");
  89. NSLog(@"0HyLjuwxfElINAF");
  90. NSLog(@"d5rINaU9e7ES");
  91. NSLog(@"pR9LbWxXmrhTnowd5tPV");
  92. NSLog(@"H7zW3ISGmbVTcthKF6fw9gPYOrdlNDRLQJ0sZqCU");
  93. NSLog(@"GhDk6AQmw7vPKW4ZuYMCRSq");
  94. NSLog(@"j9c21KxmkSOyZGThM0NEgsn3iDrFPVCd6");
  95. }
  96. -(void)aLxu9sPcz:(UIWindow*) aLxu9sPcz anQ862okU5c:(UIMenuItem*) anQ862okU5c aF6TH:(UIColor*) aF6TH aw3rf61XG5:(UIEvent*) aw3rf61XG5 akoQf:(UIBarButtonItem*) akoQf au2hz:(UIUserInterfaceIdiom*) au2hz arGK0FvR:(UIActivity*) arGK0FvR as0hnUu8qp:(UITableView*) as0hnUu8qp aMQXd:(UIImageView*) aMQXd arN5Wbn:(UIMotionEffect*) arN5Wbn aecDxji:(UIRegion*) aecDxji a8peo:(UIView*) a8peo amApRZbUrv4:(UIDocument*) amApRZbUrv4 aU12isn0:(UIImage*) aU12isn0 a3PzxpG8:(UIViewController*) a3PzxpG8 aPmIRh:(UIButton*) aPmIRh afRVIFwGi6:(UIAlertView*) afRVIFwGi6 afmU0wF:(UIImageView*) afmU0wF {
  97. NSLog(@"Iq5b2lrwOAXo6jymxkFpThsNZvuRfcGVCS0MWH");
  98. NSLog(@"d9B6Jqcrtu");
  99. NSLog(@"wlDrqSMKs3YyLjaZPNRhgpkFI6QdV41");
  100. NSLog(@"3QYDU4REjvkdeAWg8S");
  101. NSLog(@"T5sGdxVE7HQvzDYpi6mk8yM4KlqI2BFP31o9crL");
  102. NSLog(@"Y1rZo9AzcnMPeytOm");
  103. NSLog(@"oBt0J5sQRF6pLDwgzbfVely82MWHrmj");
  104. NSLog(@"2ku7Y6FljS");
  105. NSLog(@"sCSwvPz3719axImub8JyN6tn0c");
  106. NSLog(@"aIo62js3vhpcYlXLFZPC1HNuObm84M57TiDRdg0n");
  107. NSLog(@"AfyL9QPqXRdUcV8N1IinSH0jsT");
  108. NSLog(@"PmuoeA1KsB45L6cODw2tk9fi0ndWT8qRp");
  109. NSLog(@"p3dulPQsNqXGT28kj50oO71R6iUyv9DWY");
  110. NSLog(@"koWEZTV5j3");
  111. NSLog(@"RaydirGo3cBQzUuWFAKH");
  112. NSLog(@"XT3QZEBzDkPW0Sbp");
  113. NSLog(@"xaum9lDkrGhwzOTvEnJdp1UeKt4MjfVcqI");
  114. }
  115. @end