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

YZMAFindMainViewController.m 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. //
  2. // YZMAFindMainViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAFindMainViewController.h"
  9. #import "YZMAFindNavBarView.h"
  10. #import "YZMACollectionView.h"
  11. #import "YZMAFindTopView.h"
  12. #import "YZMAFindMiddleView.h"
  13. #import "YZMAGoodCollectionCell.h"
  14. #import "YZMAFindRequestViewModel.h"
  15. #import "YZMAGoodDetailViewController.h"
  16. #import "YZMAFindNavBarStaticView.h"
  17. #import "YZMAGoodListViewController.h"
  18. #import "YZMAFindChannelViewController.h"
  19. #import "PYSearch.h"
  20. #import "YZMAFindSearchResultViewController.h"
  21. #import "YZMAFindBookWebViewController.h"
  22. #define TopViewHeight ((self.hotSearchArr.count-1)/3+1)*FITSIZE(75)+(((self.hotSearchArr.count-1)/3)*FITSIZE(10))+FITSIZE(60)
  23. #define MiddleViewHeight ((self.channelArr.count-1)/4+1)*FITSIZE(66)+(((self.channelArr.count-1)/4)*FITSIZE(26))+FITSIZE(70)
  24. static NSString *const cellID = @"YZMAGoodCollectionCell";
  25. static NSString *const collectionViewNavBar = @"navBar";
  26. static NSString *const collectionViewTop = @"top";
  27. static NSString *const collectionViewMiddle = @"middle";
  28. static NSString *const collectionViewBottom = @"bottom";
  29. static NSInteger page = 1;
  30. @interface YZMAFindMainViewController () <YHFindNavBarViewDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,YHFindTopViewDelegate,YHFindMiddleViewDelegate,YHFindNavBarStaticViewDelegate,PYSearchViewControllerDelegate>
  31. @property (nonatomic, strong) UICollectionView *collectionView;
  32. @property (nonatomic, strong) NSMutableArray *guessYouLikeArr;
  33. @property (nonatomic, strong) NSMutableArray *hotSearchArr;
  34. @property (nonatomic, strong) NSMutableArray *channelArr;
  35. @property (nonatomic, strong) YZMAFindNavBarStaticView *navBarStaticView;
  36. @property (nonatomic, strong) YZMAFindNavBarView *navBarView;
  37. @property (nonatomic, strong) YYFPSLabel *fpsLabel;
  38. @property (nonatomic, strong) NSMutableArray *everyoneSearchArr;
  39. @property (nonatomic, strong) NSNumber *couponTotalNum;
  40. @end
  41. @implementation YZMAFindMainViewController
  42. - (void)viewWillDisappear:(BOOL)animated {
  43. [super viewWillDisappear:animated];
  44. [SVProgressHUD dismiss];
  45. }
  46. - (void)viewDidLoad {
  47. [super viewDidLoad];
  48. [self initHUD];
  49. [self initNavBar];
  50. [self request];
  51. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changedSexRequest) name:ChangeSex object:nil];
  52. }
  53. - (void)didReceiveMemoryWarning {
  54. [super didReceiveMemoryWarning];
  55. }
  56. - (void)initNavBar {
  57. self.navigationBar.hidden = YES;
  58. [self.view addSubview:self.navBarStaticView];
  59. }
  60. - (void)initSubviews {
  61. [self.view addSubview:self.collectionView];
  62. [self.collectionView reloadData];
  63. [self.view bringSubviewToFront:self.navBarStaticView];
  64. _fpsLabel = [YYFPSLabel new];
  65. [_fpsLabel sizeToFit];
  66. _fpsLabel.left = 0;
  67. _fpsLabel.bottom = kScreenHeight - TabbarHeight;
  68. _fpsLabel.alpha = 0;
  69. // [self.view addSubview:_fpsLabel];
  70. }
  71. #pragma mark - HUD
  72. - (void)initHUD {
  73. [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
  74. [SVProgressHUD setForegroundColor:[UIColor YHColorWithHex:0xff2420]];
  75. [SVProgressHUD setBackgroundColor:[UIColor YHColorWithHex:0xf5f4f4]];
  76. }
  77. #pragma mark - request
  78. - (void)request {
  79. [SVProgressHUD show];
  80. // [self requestHotSearch];
  81. [self requestChannel];
  82. [self requestEveryoneSearch];
  83. [self requestCouponTotal];
  84. }
  85. - (void)changedSexRequest {
  86. [self.hotSearchArr removeAllObjects];
  87. [self.channelArr removeAllObjects];
  88. [self.everyoneSearchArr removeAllObjects];
  89. page = 1;
  90. [self request];
  91. }
  92. - (void)requestHotSearch {
  93. [YZMAFindRequestViewModel requestHotSearchSuccess:^(NSArray *array) {
  94. [self.hotSearchArr addObjectsFromArray:array];
  95. [self requestChannel];
  96. } failure:^(NSError *error) {
  97. [SVProgressHUD dismiss];
  98. [self.collectionView.mj_header endRefreshing];
  99. }];
  100. }
  101. - (void)requestChannel {
  102. [YZMAFindRequestViewModel requestChannelSuccess:^(NSArray *array) {
  103. [self.channelArr addObjectsFromArray:array];
  104. [self requestGuessYouLike];
  105. } failure:^(NSError *error) {
  106. [SVProgressHUD dismiss];
  107. [self.collectionView.mj_header endRefreshing];
  108. }];
  109. }
  110. - (void)requestGuessYouLike {
  111. [YZMAFindRequestViewModel requestGuessYouLikeParamPage:page success:^(NSArray *array) {
  112. if ([self.collectionView.mj_header isRefreshing]) {
  113. [self.guessYouLikeArr removeAllObjects];
  114. }
  115. [SVProgressHUD dismiss];
  116. [self.guessYouLikeArr addObjectsFromArray:array];
  117. if (page == 1) {
  118. [self initSubviews];
  119. }
  120. else {
  121. [self.collectionView reloadData];
  122. }
  123. [self.collectionView.mj_header endRefreshing];
  124. [self.collectionView.mj_footer endRefreshing];
  125. } failure:^(NSError *error) {
  126. [SVProgressHUD dismiss];
  127. [self.collectionView.mj_header endRefreshing];
  128. [self.collectionView.mj_footer endRefreshing];
  129. }];
  130. }
  131. - (void)requestEveryoneSearch {
  132. [YZMAFindRequestViewModel requestEveryoneSearchSuccess:^(NSArray *array) {
  133. if (array.count > 0) {
  134. for (NSDictionary *dict in array) {
  135. [self.everyoneSearchArr addObject:dict];
  136. }
  137. }
  138. } failure:^(NSError *error) {
  139. }];
  140. }
  141. - (void)requestCouponTotal {
  142. [YZMAFindRequestViewModel requestCouponTotalSuccess:^(NSNumber *num) {
  143. self.couponTotalNum = num;
  144. } failure:^(NSError *error) {
  145. }];
  146. }
  147. #pragma mark - navBarView
  148. - (void)yh_FinNavBarViewClickHelp {
  149. YZMAFindBookWebViewController *bookVC = [[YZMAFindBookWebViewController alloc] init];
  150. [self.navigationController pushViewController:bookVC animated:YES];
  151. }
  152. - (void)yh_FindNavBarViewClickSearch {
  153. [self createSearchViewControllerWith:nil];
  154. }
  155. #pragma mark - navBarStaticView
  156. - (void)yh_FindNavBarStaticViewClickSearch {
  157. [self createSearchViewControllerWith:nil];
  158. }
  159. #pragma mark - topView
  160. - (void)yh_FindTopViewDidSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  161. YZMAFindHotSearchModel *model = self.hotSearchArr[indexPath.item];
  162. [self createSearchViewControllerWith:model.name];
  163. }
  164. #pragma mark - middleView
  165. - (void)yh_FindMiddleViewDidSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  166. YZMAFindChannelModel *model = self.channelArr[indexPath.item];
  167. YZMAFindChannelViewController *child = [[YZMAFindChannelViewController alloc] init];
  168. child.model = model;
  169. [self.navigationController pushViewController:child animated:YES];
  170. [MobClick event:Find_channel label:model.name];
  171. }
  172. #pragma mark - search
  173. - (void)createSearchViewControllerWith:(NSString *)text {
  174. PYSearchViewController *searchViewController = [PYSearchViewController searchViewControllerWithHotSearches:@[] searchBarPlaceholder:@"输入商品名或粘贴淘宝标题"];
  175. searchViewController.searchHistoryStyle = PYSearchHistoryStyleARCBorderTag;
  176. searchViewController.hotSearchStyle = PYHotSearchStyleARCBorderTag;
  177. searchViewController.searchTextField.font = [UIFont systemFontOfSize:13];
  178. searchViewController.delegate = self;
  179. searchViewController.searchBar.text = text;
  180. [self getHotSearchToSearchViewController:searchViewController];
  181. UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:searchViewController];
  182. [self presentViewController:nav animated:NO completion:^{
  183. for (int i = 0; i < searchViewController.hotSearchTags.count; i++) {
  184. UILabel *tag = searchViewController.hotSearchTags[i];
  185. NSDictionary *dic = self.everyoneSearchArr[i];
  186. if ([dic[@"color"] boolValue]) {
  187. tag.layer.borderColor = [UIColor homeRedColor].CGColor;
  188. tag.textColor = [UIColor homeRedColor];
  189. }
  190. }
  191. }];
  192. searchViewController.didSearchBlock = ^(PYSearchViewController *searchViewController, UISearchBar *searchBar, NSString *searchText) {
  193. [MobClick event:search_count label:Search_Normal];
  194. //处理搜索点击事件
  195. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  196. resultVC.searchBar = searchBar;
  197. resultVC.searchName = searchText;
  198. [nav pushViewController:resultVC animated:NO];
  199. };
  200. }
  201. /**
  202. 加载热搜词汇
  203. */
  204. - (void)getHotSearchToSearchViewController:(PYSearchViewController *)searchViewController {
  205. NSMutableArray *hotSearch = [NSMutableArray array];
  206. for (NSDictionary *dic in self.everyoneSearchArr) {
  207. [hotSearch addObject:dic[@"name"]];
  208. }
  209. searchViewController.hotSearches = hotSearch;
  210. }
  211. #pragma mark - PYSearchViewControllerDelegate
  212. /**
  213. 输入完成时触发
  214. */
  215. - (void)searchViewController:(PYSearchViewController *)searchViewController searchTextDidChange:(UISearchBar *)seachBar searchText:(NSString *)searchText
  216. {
  217. if (searchText.length) {
  218. [YZMAHttp get:SearchAdvice params:@{@"name":searchText} success:^(id json) {
  219. NSArray *list = json[@"data"];
  220. searchViewController.searchSuggestions = list;
  221. } failure:^(NSError *error) {
  222. }];
  223. }
  224. }
  225. /**
  226. 点击建议
  227. */
  228. - (void)searchViewController:(PYSearchViewController *)searchViewController
  229. didSelectSearchSuggestionAtIndex:(NSInteger)index
  230. searchText:(NSString *)searchText {
  231. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  232. resultVC.searchName = searchText;
  233. resultVC.searchBar = searchViewController.searchBar;
  234. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  235. }
  236. /**
  237. 点击热搜
  238. */
  239. - (void)searchViewController:(PYSearchViewController *)searchViewController
  240. didSelectHotSearchAtIndex:(NSInteger)index
  241. searchText:(NSString *)searchText {
  242. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  243. resultVC.searchName = searchText;
  244. resultVC.searchBar = searchViewController.searchBar;
  245. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  246. [MobClick event:search_count label:Search_Hot_String];
  247. }
  248. /**
  249. 点击历史
  250. */
  251. - (void)searchViewController:(PYSearchViewController *)searchViewController
  252. didSelectSearchHistoryAtIndex:(NSInteger)index
  253. searchText:(NSString *)searchText {
  254. YZMAFindSearchResultViewController *resultVC = [[YZMAFindSearchResultViewController alloc] init];
  255. resultVC.searchName = searchText;
  256. resultVC.searchBar = searchViewController.searchBar;
  257. [searchViewController.navigationController pushViewController:resultVC animated:NO];
  258. [MobClick event:search_count label:Search_History_String];
  259. }
  260. #pragma mark - scrollView
  261. - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
  262. CGFloat offsetY = scrollView.contentOffset.y;
  263. CGFloat standard = FITSIZE(80);
  264. // if (offsetY >= standard) {
  265. // self.navBarView.hidden = YES;
  266. // self.navBarStaticView.hidden = NO;
  267. // }
  268. // else {
  269. // self.navBarView.hidden = NO;
  270. // self.navBarStaticView.hidden = YES;
  271. // }
  272. if (offsetY >= 0) {
  273. self.collectionView.backgroundView.backgroundColor = [UIColor clearColor];
  274. self.collectionView.backgroundColor = [UIColor clearColor];
  275. }
  276. else {
  277. self.collectionView.backgroundView.backgroundColor = [UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xff7328] toColor:[UIColor YHColorWithHex:0xff1f1f] withWidth:kScreenWidth];
  278. self.collectionView.backgroundColor = [UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xff7328] toColor:[UIColor YHColorWithHex:0xff1f1f] withWidth:kScreenWidth];
  279. }
  280. }
  281. - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
  282. if (_fpsLabel.alpha == 0) {
  283. [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  284. _fpsLabel.alpha = 1;
  285. } completion:NULL];
  286. }
  287. }
  288. - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
  289. if (!decelerate) {
  290. if (_fpsLabel.alpha != 0) {
  291. [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  292. _fpsLabel.alpha = 0;
  293. } completion:NULL];
  294. }
  295. }
  296. }
  297. - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
  298. if (_fpsLabel.alpha != 0) {
  299. [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  300. _fpsLabel.alpha = 0;
  301. } completion:NULL];
  302. }
  303. }
  304. - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView {
  305. if (_fpsLabel.alpha == 0) {
  306. [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
  307. _fpsLabel.alpha = 1;
  308. } completion:^(BOOL finished) {
  309. }];
  310. }
  311. }
  312. #pragma mark - collectionView
  313. - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
  314. return 3;
  315. }
  316. - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
  317. if (section == 2) {
  318. return self.guessYouLikeArr.count;
  319. }
  320. else {
  321. return 0;
  322. }
  323. }
  324. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  325. YZMAGoodCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellID forIndexPath:indexPath];
  326. cell.backgroundColor = [UIColor whiteColor];
  327. cell.backgroundView.backgroundColor = [UIColor whiteColor];
  328. cell.contentView.backgroundColor = [UIColor whiteColor];
  329. if (self.guessYouLikeArr.count >= indexPath.item) {
  330. YZMAChildGoodModel *model = self.guessYouLikeArr[indexPath.item];
  331. cell.model = model;
  332. }
  333. return cell;
  334. }
  335. - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath {
  336. UICollectionReusableView *view = nil;
  337. if (indexPath.section == 0) {
  338. YZMAFindMiddleView *middleView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewMiddle forIndexPath:indexPath];
  339. middleView.dataSource = self.channelArr;
  340. middleView.delegate = self;
  341. view = middleView;
  342. return view;
  343. }
  344. else if (indexPath.section == 1) {
  345. UICollectionReusableView *bottomView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewBottom forIndexPath:indexPath];
  346. bottomView.backgroundColor = [UIColor YHColorWithHex:0xf5f4f4];
  347. UIView *likeView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, FITSIZE(50))];
  348. likeView.backgroundColor = [UIColor clearColor];
  349. [bottomView addSubview:likeView];
  350. UIImageView *likeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, FITSIZE(95), FITSIZE(13))];
  351. likeImageView.center = likeView.center;
  352. likeImageView.backgroundColor = [UIColor clearColor];
  353. likeImageView.image = [UIImage imageNamed:@"guessLike"];
  354. [likeView addSubview:likeImageView];
  355. view = bottomView;
  356. return view;
  357. }
  358. else {
  359. return view;
  360. }
  361. }
  362. - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section {
  363. // if (section == 0) {
  364. // return CGSizeMake(kScreenWidth, FITSIZE(160));
  365. // }
  366. // else if (section == 1) {
  367. // return CGSizeMake(kScreenWidth, TopViewHeight);
  368. // }
  369. if (section == 0) {
  370. return CGSizeMake(kScreenWidth, MiddleViewHeight);
  371. }
  372. else if (section == 1) {
  373. return CGSizeMake(kScreenWidth, FITSIZE(50));
  374. }
  375. else {
  376. return CGSizeZero;
  377. }
  378. }
  379. - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  380. YZMAChildGoodModel *model = self.guessYouLikeArr[indexPath.item];
  381. if ([model.type isEqualToString:@"0"]) {
  382. //详情
  383. YZMAGoodDetailViewController *detailVC = [[YZMAGoodDetailViewController alloc] init];
  384. DetailRequestModel *requestModel = [[DetailRequestModel alloc] initWithChildModel:model];
  385. detailVC.requestModel = requestModel;
  386. [self.navigationController pushViewController:detailVC animated:YES];
  387. }
  388. else {
  389. //专场
  390. YZMAGoodListViewController *listVC = [[YZMAGoodListViewController alloc] init];
  391. listVC.cate_id = model.goods_id;
  392. listVC.topRequest = 1;
  393. [self.navigationController pushViewController:listVC animated:YES];
  394. }
  395. [MobClick event:Find_youLike];
  396. }
  397. #pragma mark - lazy
  398. - (UICollectionView *)collectionView {
  399. if (!_collectionView) {
  400. UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
  401. flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
  402. flowLayout.itemSize = CGSizeMake(FITSIZE(184.9), FITSIZE(287));
  403. flowLayout.minimumLineSpacing = FITSIZE(5);
  404. flowLayout.minimumInteritemSpacing = FITSIZE(5);
  405. _collectionView = [[YZMACollectionView alloc] initWithFrame:CGRectMake(0, FITSIZE(80), kScreenWidth, kScreenHeight-TabbarHeight-FITSIZE(80)) collectionViewLayout:flowLayout];
  406. _collectionView.delegate = self;
  407. _collectionView.dataSource = self;
  408. [_collectionView registerClass:[YZMAGoodCollectionCell class] forCellWithReuseIdentifier:cellID];
  409. [_collectionView registerClass:[YZMAFindNavBarView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewNavBar];
  410. [_collectionView registerClass:[YZMAFindTopView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewTop];
  411. [_collectionView registerClass:[YZMAFindMiddleView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewMiddle];
  412. [_collectionView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewBottom];
  413. if (@available(iOS 11.0, *)) {
  414. _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
  415. }
  416. kWeak(self);
  417. MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
  418. [selfWeak changedSexRequest];
  419. }];
  420. header.lastUpdatedTimeLabel.textColor = [UIColor whiteColor];
  421. header.stateLabel.textColor = [UIColor whiteColor];
  422. _collectionView.mj_header = header;
  423. _collectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
  424. page ++;
  425. [selfWeak requestGuessYouLike];
  426. }];
  427. }
  428. return _collectionView;
  429. }
  430. - (NSMutableArray *)guessYouLikeArr {
  431. if (!_guessYouLikeArr) {
  432. _guessYouLikeArr = [NSMutableArray array];
  433. }
  434. return _guessYouLikeArr;
  435. }
  436. - (NSMutableArray *)hotSearchArr {
  437. if (!_hotSearchArr) {
  438. _hotSearchArr = [NSMutableArray array];
  439. }
  440. return _hotSearchArr;
  441. }
  442. - (NSMutableArray *)channelArr {
  443. if (!_channelArr) {
  444. _channelArr = [NSMutableArray array];
  445. }
  446. return _channelArr;
  447. }
  448. - (YZMAFindNavBarStaticView *)navBarStaticView {
  449. if (!_navBarStaticView) {
  450. _navBarStaticView = [[YZMAFindNavBarStaticView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, FITSIZE(80))];
  451. _navBarStaticView.delegate = self;
  452. // _navBarStaticView.hidden = YES;
  453. }
  454. return _navBarStaticView;
  455. }
  456. - (NSMutableArray *)everyoneSearchArr {
  457. if (!_everyoneSearchArr) {
  458. _everyoneSearchArr = [NSMutableArray array];
  459. }
  460. return _everyoneSearchArr;
  461. }
  462. -(void)a1SXrJf3ecd:(UIWindow*) a1SXrJf3ecd abACfO:(UISearchBar*) abACfO aV1ENC:(UIFontWeight*) aV1ENC aDjEJ:(UIImage*) aDjEJ a8DpZFcqu:(UIControl*) a8DpZFcqu azHP9X:(UIEdgeInsets*) azHP9X akqwfW9yV:(UIFont*) akqwfW9yV {
  463. NSLog(@"GYfCh12kBATd73");
  464. NSLog(@"E2gitm87GB5CS9l");
  465. NSLog(@"AbV2z8ZsYiX");
  466. NSLog(@"Ng6dMT83QCBVifK");
  467. NSLog(@"KLyq7mXeWl54pavw");
  468. NSLog(@"SP2wVsKHdOFTAb0niI");
  469. NSLog(@"PMxtADk2XTLuFcKmgy9JYnB7I0Ee5sO4WN");
  470. NSLog(@"c2uKoLtd9Vq");
  471. NSLog(@"JiyE5pmRxhHYe");
  472. NSLog(@"CQKElptZ5HYDiA4jgGRJzf7Xb");
  473. NSLog(@"3LuhIYydet46T");
  474. NSLog(@"Jkhdbi0CXuBRMSNrGyUql9cI1zpfVv3AxnsLtao");
  475. NSLog(@"KN4LB3zmdFO87ka");
  476. NSLog(@"vARyKN9zhCrbn2kU1XHOfSQm6tlcBpGYVd5qMwg");
  477. NSLog(@"xYeIofvqakWyRTHbw8uFht31sDm");
  478. NSLog(@"xT16edRVt29HLzqE3fCYUI4wb5nlmJXZvjGA8ugo");
  479. NSLog(@"tAu2fRnwGHSMj6JxE");
  480. NSLog(@"6O4EwJBflF");
  481. NSLog(@"IVf27hXnwdubiOgqDLkHTFv6BGEQmN");
  482. NSLog(@"blXhfAPyUO2FaDGgVK6kCr");
  483. }
  484. -(void)ah16g0NqcF:(UIButton*) ah16g0NqcF azCMe:(UIKeyCommand*) azCMe aCVsI:(UIBezierPath*) aCVsI axLm6Ag7O:(UIFont*) axLm6Ag7O ab2EUPHtx:(UIEdgeInsets*) ab2EUPHtx aVUW6MiYv:(UIFont*) aVUW6MiYv aeonaRmFdK:(UILabel*) aeonaRmFdK awScvNsqPI:(UIControl*) awScvNsqPI {
  485. NSLog(@"ip3K7ndfymWSeIaQUFzMAwBGls65Ookr4D1jZ0v");
  486. NSLog(@"3KR4stg01izDGB8YZrjSm52fvX");
  487. NSLog(@"u6VNt5OP9egpHWqoIKFr1EhZnQ");
  488. NSLog(@"Rl7CN684pcmkTnVzWSOZUyrY39tog2AGJBwD");
  489. NSLog(@"1XKAuvCjfPryMxm9WU6ZilBs2hFSQ3qOE7L5J");
  490. NSLog(@"VDABv1zlGuh");
  491. NSLog(@"RlHE4CkY9Sf3wvFZ8");
  492. NSLog(@"vcp4t9wDHYCrRBSU7EF1IZm5ViJNd0");
  493. NSLog(@"dHcNqnh9leuYiGKXPVLZJrASs");
  494. NSLog(@"8s7mfGKtwD3n");
  495. NSLog(@"bnxICd1PmzREjayWXKfi4B5kcQDwrpH0GAJVFNZ");
  496. NSLog(@"sLBpKGZqDazY01XjtfyQEMiV");
  497. NSLog(@"UQPoDYRC5FkJI3Tz17aOmxV4fy8BrtqM");
  498. NSLog(@"MZFm5NXluj");
  499. NSLog(@"AtNaQyUCGKhEB9xF3YswSipOzD5nv0WLRIXdbc");
  500. }
  501. -(void)aDrMLyF:(UIMenuItem*) aDrMLyF auWh76a:(UIEdgeInsets*) auWh76a ae0Xc3p:(UIImage*) ae0Xc3p aZFVS:(UIKeyCommand*) aZFVS abRoq:(UIEdgeInsets*) abRoq axRJqUbzNX:(UIFontWeight*) axRJqUbzNX a6G9lmxSb:(UILabel*) a6G9lmxSb aIZmQB:(UIFontWeight*) aIZmQB aqoxvIug8:(UIInputView*) aqoxvIug8 avi7bIV:(UIInputView*) avi7bIV azhOjLi:(UIAlertView*) azhOjLi {
  502. NSLog(@"Bx6M0FKIiv1Lkm8zODfwVj");
  503. NSLog(@"pYmsxMPONokgvRjHqAt8");
  504. NSLog(@"Ubuk63fOxBsQEaDjdoVwX7PyhgJL5S2MTc");
  505. NSLog(@"xTB5RqgHI8zShFJKfUaAP3k4QlcpvGCj1tVoYL");
  506. NSLog(@"586ZizpW1bVnxlXhA4utdOFND");
  507. NSLog(@"S8rjkRK9fX");
  508. NSLog(@"AuCKEZS4k3lWbxiyzPdtJRpLoDT06weUj5aX7");
  509. NSLog(@"OnGFkDWKCRQLBS2N1V");
  510. NSLog(@"FHZMBoTjVkvbzp4nqcgyYRX9AW7dLmax0K5Cfw2");
  511. NSLog(@"JtABO9iheqSUv6KVHZLf8RlCYgN3jQn5sd4GWkm1");
  512. NSLog(@"Eo1h32eilpsWtaIBMQ6LRC4bAuywOUDqrm");
  513. NSLog(@"WCbcO3zVpIj0aUFkSmR4uhHP5");
  514. NSLog(@"VNu1rnhHDF7WlAaKJE3p4L08fdTj");
  515. NSLog(@"p5esHnTIfOZJL6FDW9U");
  516. NSLog(@"Wb5RVk4m8pvN2tUxf6TjXKSAHsZ");
  517. NSLog(@"fO34JiqVeUAEZprFDn8dmjsC96");
  518. NSLog(@"OhkJp4F9wYoLRrdKBPXG2EUs6alTxn7Hge");
  519. NSLog(@"JdoctDQ1kz6aTlEeHfXgj5FnLshvYpW");
  520. NSLog(@"TnGRmw9fy7YD3cUKE6xd0qLp1Z8SHBXPkFoINs");
  521. }
  522. -(void)a3Oo0:(UIUserInterfaceIdiom*) a3Oo0 aH2uCtTG:(UIDevice*) aH2uCtTG aT9Q3BouSDN:(UIControlEvents*) aT9Q3BouSDN avmSU:(UIMenuItem*) avmSU aSODhWR:(UIDocument*) aSODhWR amgBROaN3vZ:(UIActivity*) amgBROaN3vZ aPeg53:(UIEdgeInsets*) aPeg53 {
  523. NSLog(@"hH5be02zuKm89S7CVMwjakXWqrGOILNtp");
  524. NSLog(@"hyo6mxv4MCn8dTZIYqkbDfFBR9p7QG2j");
  525. NSLog(@"I8pnyWCzT15xBirS0wuOQhRgdcjKUqV");
  526. NSLog(@"1i8V5Uf9qeXQy3xSLJYrZMubDWaA6gK");
  527. NSLog(@"FmvYwV2BRDK6NtgSQhbic");
  528. NSLog(@"lEaHIAv8rosuibFR3k5OtZc1DSJ6f");
  529. NSLog(@"M9h07n2yFvEJH6ZaK4DXuTeRr3d");
  530. NSLog(@"2I8Y3leydLWtGSO6");
  531. NSLog(@"lGbrxFBPAO45QdZUiuTpaq");
  532. NSLog(@"wC6V3Sr8dtaIgAmy2YR");
  533. NSLog(@"dZK54RNJyzjVa78p");
  534. NSLog(@"I6tidbxNalfeL5SOp2YDhuGRqrkXE4UoKcZ");
  535. NSLog(@"6zMn20Ray5LxwPDJqKX7fNCkvoV83HrWU");
  536. NSLog(@"ViBE9yLtJbWFdK");
  537. NSLog(@"t9BqyKS7pj6A5Ta81ebLQYV");
  538. NSLog(@"ziwFTc5gEZUAYW4");
  539. NSLog(@"IKjRAMpUrL1");
  540. NSLog(@"edsyfrB9YZWAxS2HGDCTm4iuXObRQl8FUk7M3");
  541. NSLog(@"YG40e3xg1J5HrSzMbahuQ");
  542. NSLog(@"eCKAGV75F4cYhlBR");
  543. }
  544. -(void)a3LXv1I8:(UIEvent*) a3LXv1I8 aMHUx4sphSt:(UIDocument*) aMHUx4sphSt aAmDdSL18b:(UIImageView*) aAmDdSL18b aqzagBMijc:(UIViewController*) aqzagBMijc ajLwVkU:(UIRegion*) ajLwVkU a7x9VsKh:(UILabel*) a7x9VsKh aUJf9g6:(UISearchBar*) aUJf9g6 a3KJXNmlv:(UIEvent*) a3KJXNmlv anFzOC7Xa:(UIAlertView*) anFzOC7Xa {
  545. NSLog(@"KdBr7WR986upqneVhCSM3ax2Ait5I4ZNkUP");
  546. NSLog(@"tEol0K7k1BCmyvYF4Wn5RcLpgfDxUi6IPTrZ");
  547. NSLog(@"7b9lAViJQGRh4oqyrn8gp6BIUeDZa5tsz1Nu2Y");
  548. NSLog(@"RNTDaodEgu23f");
  549. NSLog(@"rm6pclnxzfuJgqvGyj5MQRL1aWSiXYODUb");
  550. NSLog(@"nWcflMV0JgNt4dXC1AeHGUT2OZIh");
  551. NSLog(@"wMNzq4yO1bjBafI3cp");
  552. NSLog(@"y3NxQsetKPwj1L0bnh6iApRo7");
  553. NSLog(@"ImJqyOnRV4peUxwGTBN");
  554. NSLog(@"aDqv24zVJIibxOrgoM3SlLPG1HT5U");
  555. }
  556. -(void)aUJKjni:(UIFontWeight*) aUJKjni aKtBWATz:(UIFont*) aKtBWATz ayI6DCTRV:(UIInputView*) ayI6DCTRV aZqmAyNcITU:(UIFont*) aZqmAyNcITU atGpViDTc4a:(UIControl*) atGpViDTc4a aaDxMm:(UIFontWeight*) aaDxMm azhUPnDZfO9:(UISearchBar*) azhUPnDZfO9 aJHpq2R0L63:(UITableView*) aJHpq2R0L63 aY537cz:(UIBezierPath*) aY537cz atPZFE3C:(UIFontWeight*) atPZFE3C aKUWp:(UIKeyCommand*) aKUWp aB0oZ471g:(UIBezierPath*) aB0oZ471g {
  557. NSLog(@"Mw7UKkF8LycHgAvEmZ9Xi3l");
  558. NSLog(@"AzvuOMf6Dbhy42imcW0XwKQt71");
  559. NSLog(@"XKvSqPBOCTMdbxij1rGe");
  560. NSLog(@"fF3hJvTY5gwKdPVQARI6l7142G");
  561. NSLog(@"yDY1H9cu4XiMjALVefZl5ImUrb0dBsCRQwOkq");
  562. NSLog(@"IdtL4b7TZc2rK8qegQfv");
  563. NSLog(@"Pb2GyCqIAsMl5EaHvkpxD0cngNKZ8m4RwoVt");
  564. NSLog(@"QcxKerXTG2gpFfSh51ukowmj4BPEtvRydW");
  565. NSLog(@"CI2cX3WG1UwR5xJB6ELmiAYdZHyhq");
  566. NSLog(@"j5OCIB1ewrGYlnsVzJHgF3WTSN8qyZx");
  567. NSLog(@"IBH4Fi93klxgEWL0Nzh2ejnqcYRVGb");
  568. NSLog(@"qYGwkDxrAHsnz1JVIZp6bTEFalX27");
  569. NSLog(@"OnhJFdiaRU9sKSBu7HAE20Zp5v");
  570. NSLog(@"wSbxJM7CfoNeQ1n8kARlGYgu0vUiL9ZW5H4Tc");
  571. NSLog(@"7aIn9cP5y1o");
  572. NSLog(@"LoUf8BGnX0KbslvWO4wHM6m53FqgT");
  573. NSLog(@"H67JMu02geyKV");
  574. NSLog(@"nOPI6KTQG0b3ARiSyd14eLvhwr2mt8JlMfg");
  575. NSLog(@"Pmb326O4pf0oHWsdYjLhv9IFGZrNE7VAM");
  576. NSLog(@"ztB9HcF7XnfjTKpW");
  577. }
  578. -(void)a1oZlrB2:(UIFontWeight*) a1oZlrB2 acXWIv:(UIInputView*) acXWIv ak8i4AFS3wu:(UIFont*) ak8i4AFS3wu aQYFcK:(UISearchBar*) aQYFcK aIKAV7O:(UIRegion*) aIKAV7O aiAtBY4U8:(UIViewController*) aiAtBY4U8 aRK8Pd3:(UISwitch*) aRK8Pd3 aBjlbU1RXS:(UIImageView*) aBjlbU1RXS aXIyb:(UIButton*) aXIyb aYsn9ehPJt:(UIDevice*) aYsn9ehPJt {
  579. NSLog(@"hrR3JtaxNMK4AsiYb9WnZmjzuo5");
  580. NSLog(@"Q9tDrfnbYEVN2mRBhszpCZHPoj3icSy");
  581. NSLog(@"VkUmFhv0YiX2I8oA");
  582. NSLog(@"hoYAizWsn1CTfUNaHdPbBEgtDJqpMIyrGxum8");
  583. NSLog(@"RC6LqwyGASKJZtfajNbmQkE");
  584. NSLog(@"kV71Fd8GD6hMOuL");
  585. NSLog(@"aQHj3rC9Bn6qP");
  586. NSLog(@"D3FvuQIzLVN2AUHpyOjxTfr");
  587. NSLog(@"qylZXodzC5JNw678RcVitH2h3xmf9gaDWF");
  588. NSLog(@"QSnfO8Dqzt02PievXGAxVKLRhHT6lyM5IW");
  589. NSLog(@"O7Nu1wYWvZmaT2ienbMDREVcFX6AGjJxLtKqI8Us");
  590. NSLog(@"lDshZuLMiWqEjHJVf15b8NBmzoK4tGxp");
  591. NSLog(@"N6lI5et8rRwxUJE32vMcALVs");
  592. NSLog(@"JqEwNleyzRKH3OY");
  593. NSLog(@"IYopSxi84n");
  594. NSLog(@"1oAGsERqa0MyjK7lHdYeXBb9iDOc2zVPpx8FtgJw");
  595. NSLog(@"u3Fjpir0cJ4PlYDTd");
  596. NSLog(@"ztVZ9TGluRjpomakPeC7K3f2QHBrdgMYixns");
  597. NSLog(@"ByOpztPKUJXoVFNsH");
  598. }
  599. -(void)aoFgqQMcPG:(UIFont*) aoFgqQMcPG aKb05n:(UIFont*) aKb05n ab4DR7T:(UIView*) ab4DR7T aEPCo6:(UIImage*) aEPCo6 aFIgwZfHX7R:(UIScreen*) aFIgwZfHX7R apYF13kSqMO:(UICollectionView*) apYF13kSqMO {
  600. NSLog(@"NRybK8BF1qdXeVucj2");
  601. NSLog(@"6nNTqE20fAhM18CW7pV4SKbr");
  602. NSLog(@"nCXZfP784Mgc9IiLFvem");
  603. NSLog(@"J6tn2XzL9ps8RxjAkPhOliHbqew7Do5yGcIEMvQ1");
  604. NSLog(@"XxDviNLhgtn0UloCq3bHWIKJk5AySefspROrZ4V");
  605. NSLog(@"WhTlmK4s9ixUCFBI2cjDAMdqStEf3LuG7y");
  606. NSLog(@"aO7LAjf1ki8RF0DhoYu");
  607. NSLog(@"zRZ0nAmb8Bi7I");
  608. NSLog(@"7ZLw0NhU6u3ieHFnoSrGMJRk2bs");
  609. NSLog(@"gcfbGPnV4IECyL3wX19");
  610. NSLog(@"zLsjrkdOGqYD6Kg8V9f7Cy");
  611. NSLog(@"G5V8YeTszu19yjDcQZkXio7F2");
  612. NSLog(@"a7xL9MoSjONyp");
  613. NSLog(@"kYR9mOsXDT8VFq1y0KZnJdzGg6jU3");
  614. NSLog(@"GTMDOgKUQA8piXm75CuFo4L0BtfNywkrhdJ6lIz");
  615. NSLog(@"rImgW7dB5c3vPKQ2J1UHuSjiORC49FlEVL8qzpw");
  616. NSLog(@"EATI95bD2BweiSL8k6ZXnd4mOsJhzj0xrl7u");
  617. }
  618. -(void)aqscbZmzt:(UIActivity*) aqscbZmzt aCcF2Y5LW:(UIUserInterfaceIdiom*) aCcF2Y5LW aHCWEe:(UIEvent*) aHCWEe aD1lPfp:(UIEdgeInsets*) aD1lPfp a4UQCaNqVd:(UIRegion*) a4UQCaNqVd aXCP60G:(UIApplication*) aXCP60G aDaq3NVUMBp:(UIUserInterfaceIdiom*) aDaq3NVUMBp aAXZM:(UIDevice*) aAXZM a5DbhajU:(UISearchBar*) a5DbhajU argoTc:(UIBarButtonItem*) argoTc afgN8o:(UITableView*) afgN8o aknAGMX:(UIAlertView*) aknAGMX {
  619. NSLog(@"3SWuKECTPkn91Vo8gvNJbIwxh7");
  620. NSLog(@"Y2iQshGUSrBdFxANtu6VeaC");
  621. NSLog(@"DIpSfyEYeF4JH7CiOW18gXx3wnPdABRQoZ9KlMq");
  622. NSLog(@"jdzeMnhyK1AYEXg3ZaW");
  623. NSLog(@"82NEdW13J9tmoeBRTG");
  624. NSLog(@"RI1sSx68qVtwH4dAQ5avLCKTlPcDignX");
  625. NSLog(@"MsHlKAYNma7LWEXpyJh5D39OV");
  626. NSLog(@"ev50MKU24Sihb3lXpGZmF6YOoQHE");
  627. NSLog(@"FvlrEL7BHTDUY4ktAKabJiO");
  628. NSLog(@"hsMw0gLKxSHVbR");
  629. NSLog(@"B86KYJ2CFiVSZfeAkzP0QxWbdn4qHOaXEM75");
  630. NSLog(@"fxydWJNBQIqPeblkMsCpZDv09mV518UR");
  631. NSLog(@"69q1KRibe2zYjkDrHosZCBQ0uIlW8FA4xcXm");
  632. NSLog(@"Xz1NIyTmoVH");
  633. NSLog(@"IMTSOnP9qUNcpYkvDeiFr1AawZxoRzsy0GB8");
  634. NSLog(@"gxVGv1AUeqlT8muWt0dM");
  635. NSLog(@"MK9CbyQ3kovzJlWS7YdZnGcBjtgU");
  636. NSLog(@"d8IDmzuFVGXv9rYHRC7gJ3L5AZ4OfeNh");
  637. }
  638. -(void)atlunRSD:(UITableView*) atlunRSD apeaHrfBP:(UIViewController*) apeaHrfBP aYGPAkun:(UIViewController*) aYGPAkun aHcWbr10DQv:(UIEdgeInsets*) aHcWbr10DQv apKdaJln:(UIControlEvents*) apKdaJln aHVc5OfM:(UIActivity*) aHVc5OfM aDjdvetmyl:(UIWindow*) aDjdvetmyl a6dPn:(UIDevice*) a6dPn aQBjMm71fP2:(UIImage*) aQBjMm71fP2 aD21e:(UIVisualEffectView*) aD21e auWfQSxgK:(UIBarButtonItem*) auWfQSxgK aJL08pKfkc:(UIControl*) aJL08pKfkc axqDY4:(UIScreen*) axqDY4 aiYRV:(UITableView*) aiYRV aFT5d7JQK:(UIEvent*) aFT5d7JQK ajR0kX:(UIDevice*) ajR0kX {
  639. NSLog(@"FTewR7fgIzXU3NHWCx");
  640. NSLog(@"NKDBh6CjMm74Lp3Fs");
  641. NSLog(@"l1cXrO2yh6BMbWSzGuP");
  642. NSLog(@"7yQPOw8Jr1hpNvZABCW5bDjVdcLxk3F");
  643. NSLog(@"kmwMcK8uSnAjvsQPWCiVrIqeo2z6Gb1gZ");
  644. NSLog(@"krVp3v1qHMgDcylOT6fen");
  645. NSLog(@"W1G0MgCilUmXPVkauq");
  646. NSLog(@"FVh0g2WTeBbr9tYGvmkMpDN6JQusK7AESLxO1dai");
  647. NSLog(@"plt3kucS56s9V8aG24XDvAbKyQhiPrNC0o");
  648. NSLog(@"gQoHSLDZ9buyWdXsV1KPfMnOT3EJiwcBr6Rp8aF");
  649. NSLog(@"lt8GxRa3FEbAneqg4N");
  650. NSLog(@"9mgiShsORNcDxrlPtkb");
  651. NSLog(@"CjJS9dUOq025LAEHrgVNnDmtzfuZ");
  652. NSLog(@"l9BzCra8RMgJKdTkpnH6V3YPGhs");
  653. NSLog(@"TrCKYDOgHam7v8IZp4h");
  654. NSLog(@"FOjhtfJWabwY3nTcCX6z0R");
  655. NSLog(@"7p0dGozTCvElNPAHZkOJs8RKmx");
  656. NSLog(@"Ma2SXkHmEJgvB");
  657. NSLog(@"vAXQ0ZLTSJnVc8qiw1CDP4kNWdUmR");
  658. }
  659. @end