一折买app------返利---------返利宝

YZMANineNineMainViewController.m 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. //
  2. // YZMANineNineMainViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMANineNineMainViewController.h"
  9. #import "YZMATableView.h"
  10. #import "YZMANineNineHeaderView.h"
  11. #import "YZMANineNineScrollViewController.h"
  12. #import "YZMANineNineTableViewCell.h"
  13. #import "YZMANineNineRequestViewModel.h"
  14. #import "YZMANineTableView.h"
  15. #import "YZMAGoodListViewController.h"
  16. #import "YZMAGoodDetailViewController.h"
  17. #import "PYSearch.h"
  18. #import "YZMAFindSearchResultViewController.h"
  19. #import "YZMAFindRequestViewModel.h"
  20. #import "YZMAGoodListCidViewController.h"
  21. #import "YZMANineNineScrollChildViewController.h"
  22. static NSString *const cellID = @"YZMANineNineTableViewCell";
  23. @interface YZMANineNineMainViewController () <UITableViewDelegate,UITableViewDataSource,YHNineNineScrollViewControllerDelegate,YHNineNineHeaderViewDelegate,YHNineNineTableViewCellDelegate,PYSearchViewControllerDelegate>
  24. @property (nonatomic, strong) UITableView *tableView;
  25. @property (nonatomic, strong) YZMANineNineHeaderView *headerView;
  26. @property (nonatomic, strong) YZMANineNineScrollViewController *scrollViewController;
  27. @property (nonatomic, strong) YZMANineNineModel *nineNineModel;
  28. @property (nonatomic, assign) BOOL canScroll;
  29. @property (nonatomic, strong) YYFPSLabel *fpsLabel;
  30. @property (nonatomic, strong) NSMutableArray *everyoneSearchArr;
  31. @end
  32. @implementation YZMANineNineMainViewController
  33. - (void)viewWillDisappear:(BOOL)animated {
  34. [super viewWillDisappear:animated];
  35. [SVProgressHUD dismiss];
  36. }
  37. - (void)viewDidLoad {
  38. [super viewDidLoad];
  39. [self initHUD];
  40. [self initNavBar];
  41. [self request];
  42. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changedSexRequest) name:ChangeSex object:nil];
  43. }
  44. - (void)didReceiveMemoryWarning {
  45. [super didReceiveMemoryWarning];
  46. }
  47. - (void)initNavBar {
  48. self.canScroll = YES;
  49. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeScrollStatus) name:@"leaveTop" object:nil];
  50. [self.navigationBar setNavightionBarBackgroundColor:[UIColor clearColor]];
  51. // NSInteger sex = [[[NSUserDefaults standardUserDefaults] objectForKey:UserSexKey] integerValue];
  52. // if (sex == 0) {
  53. // [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0xff8daa]];
  54. // } else {
  55. // [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0x98befd]];
  56. // }
  57. UIButton *search = [UIButton buttonWithType:UIButtonTypeCustom];
  58. search.frame = CGRectMake(0, 0, FITSIZE(22), FITSIZE(22));
  59. search.backgroundColor = [UIColor clearColor];
  60. [search setBackgroundImage:[UIImage imageNamed:@"search"] forState:UIControlStateNormal];
  61. [search addTarget:self action:@selector(searchButtonAction) forControlEvents:UIControlEventTouchUpInside];
  62. [self.navigationBar setCustomRightButtons:@[search]];
  63. UIImageView *titleImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.navigationBar.width/2-FITSIZE(116)/2, KStatusBarHeight+22-FITSIZE(25)/2, FITSIZE(116), FITSIZE(25))];
  64. titleImageView.backgroundColor = [UIColor clearColor];
  65. titleImageView.image = [UIImage imageNamed:@"99navBar"];
  66. [self.navigationBar addSubview:titleImageView];
  67. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  68. [leftBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
  69. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  70. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  71. leftBtn.hidden = !self.showBackButton;
  72. }
  73. - (void)backAction {
  74. [self.navigationController popViewControllerAnimated:YES];
  75. }
  76. - (void)searchButtonAction {
  77. [self createSearchViewControllerWith:nil];
  78. }
  79. #pragma mark notify
  80. - (void)changeScrollStatus//改变主视图的状态
  81. {
  82. self.canScroll = YES;
  83. self.scrollViewController.childCanScroll = NO;
  84. }
  85. - (void)initSubviews {
  86. [SVProgressHUD dismiss];
  87. [self.view addSubview:self.tableView];
  88. self.tableView.tableHeaderView = self.headerView;
  89. [self.tableView reloadData];
  90. [self.view bringSubviewToFront:self.navigationBar];
  91. _fpsLabel = [YYFPSLabel new];
  92. [_fpsLabel sizeToFit];
  93. _fpsLabel.bottom = kScreenHeight - TabbarHeight;
  94. _fpsLabel.left = 0;
  95. _fpsLabel.alpha = 0;
  96. // [self.view addSubview:_fpsLabel];
  97. }
  98. #pragma mark - HUD
  99. - (void)initHUD {
  100. [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
  101. [SVProgressHUD setForegroundColor:[UIColor YHColorWithHex:0xff2420]];
  102. [SVProgressHUD setBackgroundColor:[UIColor YHColorWithHex:0xf5f4f4]];
  103. }
  104. #pragma mark - request
  105. - (void)request {
  106. [SVProgressHUD show];
  107. [self requestGoodList];
  108. [self requestEveryoneSearch];
  109. }
  110. - (void)changedSexRequest {
  111. NSInteger sex = [[[NSUserDefaults standardUserDefaults] objectForKey:UserSexKey] integerValue];
  112. if (sex == 0) {
  113. self.headerView.backgroundColor = [UIColor YHColorWithHex:0xff8daa];
  114. [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0xff8daa]];
  115. } else {
  116. self.headerView.backgroundColor = [UIColor YHColorWithHex:0x98befd];
  117. [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0x98befd]];
  118. }
  119. [self.everyoneSearchArr removeAllObjects];
  120. [self.scrollViewController removeFromParentViewController];
  121. self.scrollViewController = nil;
  122. [self request];
  123. }
  124. - (void)requestGoodList {
  125. [YZMANineNineRequestViewModel requestNineNineGoodListParamGid:1 success:^(YZMANineNineModel *model) {
  126. if (model) {
  127. self.nineNineModel = model;
  128. self.headerView.headerModel = model.hot;
  129. [self initSubviews];
  130. }
  131. [self.tableView.mj_header endRefreshing];
  132. } failure:^(NSError *error) {
  133. [SVProgressHUD dismiss];
  134. [self.tableView.mj_header endRefreshing];
  135. }];
  136. }
  137. - (void)requestEveryoneSearch {
  138. [YZMAFindRequestViewModel requestEveryoneSearchSuccess:^(NSArray *array) {
  139. if (array.count > 0) {
  140. for (NSDictionary *dict in array) {
  141. [self.everyoneSearchArr addObject:dict];
  142. }
  143. }
  144. } failure:^(NSError *error) {
  145. }];
  146. }
  147. #pragma mark - nineNineHeaderViewDelegate
  148. - (void)yh_NineNineHeaderViewDidSelectItem:(YHNineNineHeaderCollectionModel *)model {
  149. if (model.cid.length) {
  150. YZMAGoodListCidViewController *listVC = [[YZMAGoodListCidViewController alloc] init];
  151. listVC.goods_id = model.Id.stringValue;
  152. listVC.cid = model.cid;
  153. listVC.topRequest = 2;
  154. [self.navigationController pushViewController:listVC animated:YES];
  155. }
  156. else {
  157. YZMAGoodListViewController *listVC = [[YZMAGoodListViewController alloc] init];
  158. listVC.cate_id = model.Id.stringValue;
  159. listVC.topRequest = 2;
  160. [self.navigationController pushViewController:listVC animated:YES];
  161. }
  162. [MobClick event:nine_top_pic];
  163. }
  164. #pragma mark - nineNineTableViewCellDelegate
  165. - (void)yh_NineNineTableViewCellDidSelectItem:(YHNineNineMiddleModel *)model {
  166. if (model.title.cid.length) {
  167. YZMAGoodListCidViewController *listVC = [[YZMAGoodListCidViewController alloc] init];
  168. listVC.goods_id = model.title.Id.stringValue;
  169. listVC.cid = model.title.cid;
  170. listVC.topRequest = 2;
  171. [self.navigationController pushViewController:listVC animated:YES];
  172. }
  173. else {
  174. YZMAGoodListViewController *listVC = [[YZMAGoodListViewController alloc] init];
  175. listVC.cate_id = model.title.Id.stringValue;
  176. listVC.topRequest = 2;
  177. [self.navigationController pushViewController:listVC animated:YES];
  178. }
  179. [MobClick event:nine_better];
  180. }
  181. #pragma mark - nineNineScrollViewControllerDelegate
  182. - (void)yh_NineNineScrollViewControllerDidSelectItem:(YZMAChildGoodModel *)model {
  183. if ([model.type isEqualToString:@"0"]) {
  184. //详情
  185. YZMAGoodDetailViewController *detailVC = [[YZMAGoodDetailViewController alloc] init];
  186. DetailRequestModel *requestModel = [[DetailRequestModel alloc] initWithChildModel:model];
  187. detailVC.requestModel = requestModel;
  188. [self.navigationController pushViewController:detailVC animated:YES];
  189. }
  190. else {
  191. if (model.cid.length) {
  192. YZMAGoodListCidViewController *listVC = [[YZMAGoodListCidViewController alloc] init];
  193. listVC.goods_id = model.goods_id;
  194. listVC.cid = model.cid;
  195. listVC.topRequest = 1;
  196. [self.navigationController pushViewController:listVC animated:YES];
  197. }
  198. else {
  199. //专场
  200. YZMAGoodListViewController *listVC = [[YZMAGoodListViewController alloc] init];
  201. listVC.cate_id = model.goods_id;
  202. listVC.topRequest = 1;
  203. [self.navigationController pushViewController:listVC animated:YES];
  204. }
  205. }
  206. }
  207. #pragma mark - search
  208. - (void)createSearchViewControllerWith:(NSString *)text {
  209. PYSearchViewController *searchViewController = [PYSearchViewController searchViewControllerWithHotSearches:@[] searchBarPlaceholder:@"输入商品名或粘贴淘宝标题"];
  210. searchViewController.swapHotSeachWithSearchHistory = YES;
  211. searchViewController.searchHistoryStyle = PYSearchHistoryStyleARCBorderTag;
  212. searchViewController.hotSearchStyle = PYHotSearchStyleARCBorderTag;
  213. searchViewController.searchTextField.font = [UIFont systemFontOfSize:13];
  214. searchViewController.delegate = self;
  215. searchViewController.searchBar.text = text;
  216. [self getHotSearchToSearchViewController:searchViewController];
  217. UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:searchViewController];
  218. [self presentViewController:nav animated:NO completion:^{
  219. for (int i = 0; i < searchViewController.hotSearchTags.count; i++) {
  220. UILabel *tag = searchViewController.hotSearchTags[i];
  221. NSDictionary *dic = self.everyoneSearchArr[i];
  222. if ([dic[@"color"] boolValue]) {
  223. tag.layer.borderColor = [UIColor homeRedColor].CGColor;
  224. tag.textColor = [UIColor homeRedColor];
  225. }
  226. }
  227. }];
  228. searchViewController.didSearchBlock = ^(PYSearchViewController *searchViewController, UISearchBar *searchBar, NSString *searchText) {
  229. [MobClick event:search_count label:Search_Normal];
  230. //处理搜索点击事件
  231. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  232. resultVC.searchName = searchText;
  233. [nav pushViewController:resultVC animated:NO];
  234. };
  235. }
  236. /**
  237. 加载热搜词汇
  238. */
  239. - (void)getHotSearchToSearchViewController:(PYSearchViewController *)searchViewController {
  240. NSMutableArray *hotSearch = [NSMutableArray array];
  241. for (NSDictionary *dic in self.everyoneSearchArr) {
  242. [hotSearch addObject:dic[@"name"]];
  243. }
  244. searchViewController.hotSearches = hotSearch;
  245. }
  246. #pragma mark - PYSearchViewControllerDelegate
  247. /**
  248. 输入完成时触发
  249. */
  250. - (void)searchViewController:(PYSearchViewController *)searchViewController searchTextDidChange:(UISearchBar *)seachBar searchText:(NSString *)searchText
  251. {
  252. if (searchText.length) {
  253. [YZMAHttp get:SearchAdvice params:@{@"name":searchText} success:^(id json) {
  254. NSArray *list = json[@"data"];
  255. searchViewController.searchSuggestions = list;
  256. } failure:^(NSError *error) {
  257. }];
  258. }
  259. }
  260. /**
  261. 点击建议
  262. */
  263. - (void)searchViewController:(PYSearchViewController *)searchViewController
  264. didSelectSearchSuggestionAtIndex:(NSInteger)index
  265. searchText:(NSString *)searchText {
  266. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  267. resultVC.searchName = searchText;
  268. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  269. }
  270. /**
  271. 点击热搜
  272. */
  273. - (void)searchViewController:(PYSearchViewController *)searchViewController
  274. didSelectHotSearchAtIndex:(NSInteger)index
  275. searchText:(NSString *)searchText {
  276. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  277. resultVC.searchName = searchText;
  278. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  279. [MobClick event:search_count label:Search_Hot_String];
  280. }
  281. /**
  282. 点击历史
  283. */
  284. - (void)searchViewController:(PYSearchViewController *)searchViewController
  285. didSelectSearchHistoryAtIndex:(NSInteger)index
  286. searchText:(NSString *)searchText {
  287. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  288. resultVC.searchName = searchText;
  289. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  290. [MobClick event:search_count label:Search_History_String];
  291. }
  292. #pragma mark - tableView
  293. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  294. return 2;
  295. }
  296. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  297. if (section == 0) {
  298. return self.nineNineModel.recommend.count;
  299. }
  300. else {
  301. return 0;
  302. }
  303. }
  304. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  305. YZMANineNineTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID forIndexPath:indexPath];
  306. cell.delegate = self;
  307. YHNineNineMiddleModel *model = self.nineNineModel.recommend[indexPath.row];
  308. cell.model = model;
  309. return cell;
  310. }
  311. - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
  312. if (section == 0) {
  313. return [[UIView alloc] init];
  314. }
  315. else {
  316. return self.scrollViewController.view;
  317. }
  318. }
  319. - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
  320. if (section == 0) {
  321. return 0.1;
  322. }
  323. else {
  324. return kScreenHeight-NavBarHeight;
  325. }
  326. }
  327. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  328. if (indexPath.section == 0) {
  329. return FITSIZE(240);
  330. }
  331. else {
  332. return 0.1;
  333. }
  334. }
  335. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  336. YHNineNineMiddleModel *model = self.nineNineModel.recommend[indexPath.row];
  337. if (model.title.cid.length) {
  338. YZMAGoodListCidViewController *listVC = [[YZMAGoodListCidViewController alloc] init];
  339. listVC.goods_id = model.title.Id.stringValue;
  340. listVC.cid = model.title.cid;
  341. listVC.topRequest = 2;
  342. [self.navigationController pushViewController:listVC animated:YES];
  343. }
  344. else {
  345. YZMAGoodListViewController *listVC = [[YZMAGoodListViewController alloc] init];
  346. listVC.cate_id = model.title.Id.stringValue;
  347. listVC.topRequest = 2;
  348. [self.navigationController pushViewController:listVC animated:YES];
  349. }
  350. }
  351. #pragma mark - scrollView
  352. - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
  353. if (scrollView.contentOffset.y >= 0) {
  354. NSInteger sex = [[[NSUserDefaults standardUserDefaults] objectForKey:UserSexKey] integerValue];
  355. if (sex == 0) {
  356. [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0xff8daa]];
  357. } else {
  358. [self.navigationBar setNavightionBarBackgroundColor:[UIColor YHColorWithHex:0x98befd]];
  359. }
  360. self.tableView.backgroundView.backgroundColor = [UIColor clearColor];
  361. self.tableView.backgroundColor = [UIColor clearColor];
  362. }
  363. else {
  364. [self.navigationBar setNavightionBarBackgroundColor:[UIColor clearColor]];
  365. NSInteger sex = [[[NSUserDefaults standardUserDefaults] objectForKey:UserSexKey] integerValue];
  366. if (sex == 0) {
  367. self.tableView.backgroundView.backgroundColor = [UIColor YHColorWithHex:0xff8daa];
  368. self.tableView.backgroundColor = [UIColor YHColorWithHex:0xff8daa];
  369. } else {
  370. self.tableView.backgroundView.backgroundColor = [UIColor YHColorWithHex:0x98befd];
  371. self.tableView.backgroundColor = [UIColor YHColorWithHex:0x98befd];
  372. }
  373. }
  374. CGFloat offY = scrollView.contentOffset.y;
  375. CGFloat height = [self.tableView rectForSection:1].origin.y - NavBarHeight;
  376. if (offY >= height) {
  377. [self.tableView setContentOffset:CGPointMake(0, height)];
  378. if (self.canScroll) {
  379. self.canScroll = NO;
  380. self.scrollViewController.childCanScroll = YES;
  381. }
  382. }else {
  383. if (!self.canScroll) {//子视图没到顶部
  384. scrollView.contentOffset = CGPointMake(0, height);
  385. }
  386. }
  387. }
  388. - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
  389. if (_fpsLabel.alpha == 0) {
  390. [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  391. _fpsLabel.alpha = 1;
  392. } completion:NULL];
  393. }
  394. }
  395. - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
  396. if (!decelerate) {
  397. if (_fpsLabel.alpha != 0) {
  398. [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  399. _fpsLabel.alpha = 0;
  400. } completion:NULL];
  401. }
  402. }
  403. }
  404. - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
  405. if (_fpsLabel.alpha != 0) {
  406. [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  407. _fpsLabel.alpha = 0;
  408. } completion:NULL];
  409. }
  410. }
  411. - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView {
  412. if (_fpsLabel.alpha == 0) {
  413. [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  414. _fpsLabel.alpha = 1;
  415. } completion:^(BOOL finished) {
  416. }];
  417. }
  418. }
  419. #pragma mark - lazy
  420. - (UITableView *)tableView {
  421. if (!_tableView) {
  422. // CGFloat height = self.showBackButton?SCREEN_HEIGHT:SCREEN_HEIGHT-TabbarHeight;
  423. _tableView = [[YZMANineTableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) style:UITableViewStylePlain];
  424. _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  425. _tableView.backgroundView.backgroundColor = [UIColor clearColor];
  426. _tableView.backgroundColor = [UIColor clearColor];
  427. _tableView.showsVerticalScrollIndicator = NO;
  428. _tableView.estimatedRowHeight = 0;
  429. _tableView.estimatedSectionHeaderHeight = 0;
  430. _tableView.estimatedSectionFooterHeight = 0;
  431. _tableView.delegate = self;
  432. _tableView.dataSource = self;
  433. [_tableView registerClass:[YZMANineNineTableViewCell class] forCellReuseIdentifier:cellID];
  434. if (@available(iOS 11.0, *)) {
  435. _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
  436. }
  437. kWeak(self);
  438. MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
  439. [selfWeak changedSexRequest];
  440. }];
  441. header.lastUpdatedTimeLabel.textColor = [UIColor whiteColor];
  442. header.stateLabel.textColor = [UIColor whiteColor];
  443. _tableView.mj_header = header;
  444. }
  445. return _tableView;
  446. }
  447. - (YZMANineNineHeaderView *)headerView {
  448. if (!_headerView) {
  449. _headerView = [[YZMANineNineHeaderView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, FITSIZE((197+NavBarHeight)))];
  450. _headerView.delegate = self;
  451. }
  452. return _headerView;
  453. }
  454. - (YZMANineNineScrollViewController *)scrollViewController {
  455. if (!_scrollViewController) {
  456. _scrollViewController = [[YZMANineNineScrollViewController alloc] init];
  457. _scrollViewController.delegate = self;
  458. [self addChildViewController:_scrollViewController];
  459. }
  460. return _scrollViewController;
  461. }
  462. - (NSMutableArray *)everyoneSearchArr {
  463. if (!_everyoneSearchArr) {
  464. _everyoneSearchArr = [NSMutableArray array];
  465. }
  466. return _everyoneSearchArr;
  467. }
  468. -(void)aInNFGde:(UITableView*) aInNFGde ah5uPtBDdG:(UIInputView*) ah5uPtBDdG afQd4:(UIEvent*) afQd4 aW8XKm:(UIRegion*) aW8XKm atmKSuy:(UIControlEvents*) atmKSuy aQt7c3e:(UIColor*) aQt7c3e {
  469. NSLog(@"3laX4nRKDbTt98iVdJuGqh2rg70voUc");
  470. NSLog(@"TH1YtfPlO0v9q3zeRIUJ");
  471. NSLog(@"a9KO6qUrsgINj14itZ8m3wJxPM0pn");
  472. NSLog(@"Yo7j2xWDKnqNGc8pdTAfQ09y5FlC6ImauLi1kZ");
  473. NSLog(@"GPOK2mnZxqg8H4rQMpX9hjAIYdUze1skL0Cb");
  474. NSLog(@"DL32ESFYkyabt0Z9oQ6xeGm");
  475. NSLog(@"mM7Rrw3ftsI4");
  476. NSLog(@"2SOnRaedpMvyrEoALTcXI84DBi9Ylhgmf");
  477. NSLog(@"xBKIdZGNyvVSiTfwWDMU65Xu9QA");
  478. NSLog(@"PhbKOwfsHyzvcXWjIulqN4dQV8F");
  479. }
  480. -(void)awRO6Lo:(UIFontWeight*) awRO6Lo a2pfx3XYCA6:(UIControlEvents*) a2pfx3XYCA6 alGAxr:(UIBarButtonItem*) alGAxr aylcutkWZ23:(UISearchBar*) aylcutkWZ23 aqGFAjVwb1:(UIBezierPath*) aqGFAjVwb1 adRpF5:(UIVisualEffectView*) adRpF5 aBDI6NQ8mV:(UIMotionEffect*) aBDI6NQ8mV atOFoT:(UIApplication*) atOFoT aUYGeXh4x:(UIInputView*) aUYGeXh4x aibE7A:(UIUserInterfaceIdiom*) aibE7A arG3w69Q:(UICollectionView*) arG3w69Q agrbay0Pw:(UIControlEvents*) agrbay0Pw acQF7E4fB:(UIUserInterfaceIdiom*) acQF7E4fB az4b5Z7O:(UIDevice*) az4b5Z7O aL8na1y7d:(UIBarButtonItem*) aL8na1y7d aAyaZlGPtd0:(UIAlertView*) aAyaZlGPtd0 aHpEs43f:(UITableView*) aHpEs43f ayFKE0o:(UIMenuItem*) ayFKE0o ayIsnZa:(UIAlertView*) ayIsnZa {
  481. NSLog(@"2DViqBdS6c10KNlHRkhZpWrsynPtY9oe");
  482. NSLog(@"peliGBr2JbnaQcf0TgSu7");
  483. NSLog(@"hOzA9MDsRp4V0175WvUTywgX8JFLYtdQSfHGxlkZ");
  484. NSLog(@"RpYKCezMoTsQruFdaJSmXBEV92");
  485. NSLog(@"084Cqw3aJke92E");
  486. NSLog(@"CeLv8w93qjXENZfkd7mn");
  487. NSLog(@"KuvISwkgCsWfrdBXD0mN9jcbVJOalUPLeQAG");
  488. NSLog(@"OZuPEQFxtclpnjzmUq7dVaTA4LyBMSvHY");
  489. NSLog(@"5GW7cq8HnvSs");
  490. NSLog(@"hXl21Zgy5aEDpcw4AGHPO");
  491. NSLog(@"0gnk6YbpX4eHmvElqf7UiQjx9");
  492. NSLog(@"pKNgw6VXEza");
  493. NSLog(@"5nsWiTwMljYD8epd4bQGNSkX");
  494. NSLog(@"6RElUVktXsmqv5zP93gc2C84rGA");
  495. NSLog(@"7VOnWwj1b5ESDrpGiufc4oTek");
  496. }
  497. -(void)a1OwuqMd:(UIButton*) a1OwuqMd arhH3:(UIFont*) arhH3 a9WxT5R:(UIMotionEffect*) a9WxT5R aLU6zjBxi:(UIActivity*) aLU6zjBxi aZqlY5CB:(UIBarButtonItem*) aZqlY5CB aFwO4:(UIButton*) aFwO4 ayB2I:(UIInputView*) ayB2I aKnz2r:(UIMotionEffect*) aKnz2r {
  498. NSLog(@"YZXvT6uNjK1b7x");
  499. NSLog(@"ZcefBo5WTnrIhAz");
  500. NSLog(@"RBFdHhXU2Q8MW5CZz6qL03rtg4");
  501. NSLog(@"8je5LxPYFrZ");
  502. NSLog(@"LJ3RNMFWbYwAylK7uhPHjEzm6");
  503. NSLog(@"wpxa0PXryOFNlkK9IW3R4se2vt6quG");
  504. NSLog(@"14kDzwn5prgO87LlWIHMNS9C3AUdBe");
  505. NSLog(@"AqZgsO3fjaWVHwrP9J0GSpmMKil");
  506. NSLog(@"q6pMyl2Ohs5NniPDdeQbwvFkfVHR4zSgKoEj0");
  507. NSLog(@"4pSYB6tGNiKTsIlobPZL8zy9250V1jxEWdDrXuCa");
  508. NSLog(@"a9bSgn1Yci80FwQDeNC5dVr4umAZKXs7tB23IO");
  509. NSLog(@"akqKWY6dBbX0SxTw4ovc7G2I8U3Eg5JRNju");
  510. }
  511. -(void)a3frzoUv2b:(UIApplication*) a3frzoUv2b a7MJr:(UIBezierPath*) a7MJr a7kaJC1OF:(UIActivity*) a7kaJC1OF aagW0:(UIViewController*) aagW0 aulc2IUWM:(UIDevice*) aulc2IUWM ag2JwTRS:(UIFont*) ag2JwTRS aGsHhpl:(UIEvent*) aGsHhpl aUn7ePBXd:(UIBarButtonItem*) aUn7ePBXd aKzy8:(UITableView*) aKzy8 aMLx1ikY4XC:(UIBarButtonItem*) aMLx1ikY4XC {
  512. NSLog(@"6JAWuD4E0wg3LdORGM");
  513. NSLog(@"GtYTs92EOre6Nm");
  514. NSLog(@"bR0u9IKBWsZlydSU8t4k57");
  515. NSLog(@"03L7RgeuwQ9xAvc5VaEWj8M");
  516. NSLog(@"WPDO1ZbwBjNptue");
  517. NSLog(@"out9YRlEaLmDZ2zIX");
  518. NSLog(@"JIhMZuKl7HRf6cz5");
  519. NSLog(@"3rbY9f4lQp0hSNXOUJkxEcw");
  520. NSLog(@"kaZm8gnvrbpt4XJYxs2hHSPCuNRqyU0FcfD9");
  521. NSLog(@"SZyK1Nl5xEvj4QkJi3YoMB2VezP6");
  522. NSLog(@"ZziT4SW5o9Xt7aPswKIdnCqhB0xyvA");
  523. NSLog(@"9f2ahrJvyG7");
  524. NSLog(@"K8h9gEHIZJe2M5GAlSz6O");
  525. NSLog(@"B4W1zGwfZqDO");
  526. NSLog(@"N18hz0syPkAmnB");
  527. NSLog(@"XyamS8qJebBYh7M1HAQ");
  528. NSLog(@"s14XxtkuyObojHcNwi3");
  529. NSLog(@"9X43eKqWmacYOn2sPId0oNDEtyRFwbZVGC6Tf");
  530. NSLog(@"3gceUrlb8tdFiIMvRmnBYwOJ1ZDy7Gk4N");
  531. NSLog(@"lbJkadgswfehVSy4UiuY6");
  532. }
  533. -(void)aqjAmLGNf:(UIWindow*) aqjAmLGNf aPq58otcVSv:(UIUserInterfaceIdiom*) aPq58otcVSv aQZGSkp46:(UIBarButtonItem*) aQZGSkp46 aeLkuFPisWd:(UIBarButtonItem*) aeLkuFPisWd aNQnD:(UIMotionEffect*) aNQnD a9ivBhxZ:(UIKeyCommand*) a9ivBhxZ {
  534. NSLog(@"UsNhX3Lj2MEHpTwZbg7JaF");
  535. NSLog(@"RhsnH7b5aDVg9GF2Ip1XWrYi");
  536. NSLog(@"G7ul64ZwOLczEAJr");
  537. NSLog(@"jyVQLxJrESRbpietquGlYP9KFmndZ6W");
  538. NSLog(@"cmsH8Y9gJ61SfqBjLuOhKXZ7w2CE");
  539. NSLog(@"E3Zin6GUc8uxyaTjqKSlov0WVbMA");
  540. NSLog(@"EZN0ra2blnDqXuxIRvfFp86gCWzwy51U");
  541. NSLog(@"fiC2HePlkvYscxD9S3AopEKqdJmR");
  542. NSLog(@"DtY3LEHFK7a");
  543. NSLog(@"K49JqsDzodmgeSuanFikZ1EhX");
  544. NSLog(@"68SAqjVM0TbdcODZeiKhzl5IrU9uvgJ2G1sYPN");
  545. NSLog(@"OzNEDayUTSQkV9sfKJ");
  546. }
  547. -(void)a7Nnw5ibQJT:(UIApplication*) a7Nnw5ibQJT aBeG38J:(UIControl*) aBeG38J a9NyL6gS:(UIBarButtonItem*) a9NyL6gS amdYtVT:(UIRegion*) amdYtVT aPRT4U:(UIKeyCommand*) aPRT4U ad7SxnhWo:(UIWindow*) ad7SxnhWo a2sSadbA6tv:(UIControlEvents*) a2sSadbA6tv azwopu:(UICollectionView*) azwopu {
  548. NSLog(@"NILVen1vsY2AJ");
  549. NSLog(@"zPa3Jmelgk92jbuSAvDToZRyH678");
  550. NSLog(@"M9zGheH61B4WVgl3IarfCJFApKsX27");
  551. NSLog(@"lwLoSbdUpFnrB7XvHgiMmVP6T2taZD");
  552. NSLog(@"It3KcUGRNXkeOEVDbrvMi5zhAByud");
  553. NSLog(@"Hpx4DLYt6QW3GqnbkzCZdKifgVB1jPmeESsJl50N");
  554. NSLog(@"VKJyfhe3QgGn");
  555. NSLog(@"kRHqyLS1pYUDncsrgQVC2EF");
  556. NSLog(@"DS9Rgq1oQVHE80MynCPiwsOAp2mceutTz");
  557. NSLog(@"bFfHM6Kpi1EeyS2LvJwsYUtBINVnrC");
  558. NSLog(@"Y904GV8J3BejXaQrh");
  559. NSLog(@"dv7CrOsMnofNYGEaQ");
  560. NSLog(@"ivs41roDYCehPG7EAxqIKtBlQwMXk9dun08Rzp");
  561. NSLog(@"mIQtXEBhnfijCa41Dp");
  562. }
  563. @end