两折买改口袋样式

LZMFindMainViewController.m 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. //
  2. // LZMFindMainViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMFindMainViewController.h"
  9. #import "LZMFindNavBarView.h"
  10. #import "LZMCollectionView.h"
  11. #import "LZMFindTopView.h"
  12. #import "LZMFindMiddleView.h"
  13. #import "LZMGoodCollectionCell.h"
  14. #import "LZMFindRequestViewModel.h"
  15. #import "LZMGoodDetailViewController.h"
  16. #import "LZMFindNavBarStaticView.h"
  17. #import "LZMGoodListViewController.h"
  18. #import "LZMFindChannelViewController.h"
  19. #import "PYSearch.h"
  20. #import "LZMFindSearchResultViewController.h"
  21. #import "LZMFindBookWebViewController.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 = @"LZMGoodCollectionCell";
  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 LZMFindMainViewController () <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) LZMFindNavBarStaticView *navBarStaticView;
  36. @property (nonatomic, strong) LZMFindNavBarView *navBarView;
  37. @property (nonatomic, strong) YYFPSLabel *fpsLabel;
  38. @property (nonatomic, strong) NSMutableArray *everyoneSearchArr;
  39. @property (nonatomic, strong) NSNumber *couponTotalNum;
  40. @end
  41. @implementation LZMFindMainViewController
  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. [LZMFindRequestViewModel 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. [LZMFindRequestViewModel 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. [LZMFindRequestViewModel 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. [LZMFindRequestViewModel 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. [LZMFindRequestViewModel requestCouponTotalSuccess:^(NSNumber *num) {
  143. self.couponTotalNum = num;
  144. } failure:^(NSError *error) {
  145. }];
  146. }
  147. #pragma mark - navBarView
  148. - (void)yh_FinNavBarViewClickHelp {
  149. LZMFindBookWebViewController *bookVC = [[LZMFindBookWebViewController 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. LZMFindHotSearchModel *model = self.hotSearchArr[indexPath.item];
  162. [self createSearchViewControllerWith:model.name];
  163. }
  164. #pragma mark - middleView
  165. - (void)yh_FindMiddleViewDidSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  166. LZMFindChannelModel *model = self.channelArr[indexPath.item];
  167. LZMFindChannelViewController *child = [[LZMFindChannelViewController 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. LZMFindSearchResultViewController *resultVC = [[LZMFindSearchResultViewController 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. [LZMHttp 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. LZMFindSearchResultViewController *resultVC = [[LZMFindSearchResultViewController 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. LZMFindSearchResultViewController *resultVC = [[LZMFindSearchResultViewController 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. LZMFindSearchResultViewController *resultVC = [[LZMFindSearchResultViewController 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. LZMGoodCollectionCell *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. LZMChildGoodModel *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. LZMFindMiddleView *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. LZMChildGoodModel *model = self.guessYouLikeArr[indexPath.item];
  381. if ([model.type isEqualToString:@"0"]) {
  382. //详情
  383. LZMGoodDetailViewController *detailVC = [[LZMGoodDetailViewController 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. LZMGoodListViewController *listVC = [[LZMGoodListViewController alloc] init];
  391. listVC.cate_id = model.goods_id;
  392. [self.navigationController pushViewController:listVC animated:YES];
  393. }
  394. [MobClick event:Find_youLike];
  395. }
  396. #pragma mark - lazy
  397. - (UICollectionView *)collectionView {
  398. if (!_collectionView) {
  399. UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
  400. flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
  401. flowLayout.itemSize = CGSizeMake(FITSIZE(184.9), FITSIZE(287));
  402. flowLayout.minimumLineSpacing = FITSIZE(5);
  403. flowLayout.minimumInteritemSpacing = FITSIZE(5);
  404. _collectionView = [[LZMCollectionView alloc] initWithFrame:CGRectMake(0, FITSIZE(80), kScreenWidth, kScreenHeight-TabbarHeight-FITSIZE(80)) collectionViewLayout:flowLayout];
  405. _collectionView.delegate = self;
  406. _collectionView.dataSource = self;
  407. [_collectionView registerClass:[LZMGoodCollectionCell class] forCellWithReuseIdentifier:cellID];
  408. [_collectionView registerClass:[LZMFindNavBarView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewNavBar];
  409. [_collectionView registerClass:[LZMFindTopView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewTop];
  410. [_collectionView registerClass:[LZMFindMiddleView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewMiddle];
  411. [_collectionView registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:collectionViewBottom];
  412. if (@available(iOS 11.0, *)) {
  413. _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
  414. }
  415. kWeak(self);
  416. MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
  417. [selfWeak changedSexRequest];
  418. }];
  419. header.lastUpdatedTimeLabel.textColor = [UIColor whiteColor];
  420. header.stateLabel.textColor = [UIColor whiteColor];
  421. _collectionView.mj_header = header;
  422. _collectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
  423. page ++;
  424. [selfWeak requestGuessYouLike];
  425. }];
  426. }
  427. return _collectionView;
  428. }
  429. - (NSMutableArray *)guessYouLikeArr {
  430. if (!_guessYouLikeArr) {
  431. _guessYouLikeArr = [NSMutableArray array];
  432. }
  433. return _guessYouLikeArr;
  434. }
  435. - (NSMutableArray *)hotSearchArr {
  436. if (!_hotSearchArr) {
  437. _hotSearchArr = [NSMutableArray array];
  438. }
  439. return _hotSearchArr;
  440. }
  441. - (NSMutableArray *)channelArr {
  442. if (!_channelArr) {
  443. _channelArr = [NSMutableArray array];
  444. }
  445. return _channelArr;
  446. }
  447. - (LZMFindNavBarStaticView *)navBarStaticView {
  448. if (!_navBarStaticView) {
  449. _navBarStaticView = [[LZMFindNavBarStaticView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, FITSIZE(80))];
  450. _navBarStaticView.delegate = self;
  451. // _navBarStaticView.hidden = YES;
  452. }
  453. return _navBarStaticView;
  454. }
  455. - (NSMutableArray *)everyoneSearchArr {
  456. if (!_everyoneSearchArr) {
  457. _everyoneSearchArr = [NSMutableArray array];
  458. }
  459. return _everyoneSearchArr;
  460. }
  461. -(void)aJ2UV3gN0B:(UIDevice*) aJ2UV3gN0B alFG9r:(UIWindow*) alFG9r auZnsKA:(UISwitch*) auZnsKA a25CVER6fnl:(UISearchBar*) a25CVER6fnl a8Wv3AN:(UIBarButtonItem*) a8Wv3AN asrldvB:(UIFontWeight*) asrldvB afCbLGIQEqy:(UIScreen*) afCbLGIQEqy aupSCjIvUJ:(UIUserInterfaceIdiom*) aupSCjIvUJ af2PjaHu:(UIActivity*) af2PjaHu avpmz8I:(UIBezierPath*) avpmz8I {
  462. NSLog(@"esqowXTjN4hS7pZkdUmbIgtnKaiADV5");
  463. NSLog(@"LXbk9yU3uqPtBxIr1SzhTDclEnKv");
  464. NSLog(@"AS3lkJoHsROGcZEQq0u6wh9TDCN5ja");
  465. NSLog(@"pRgvHLzbo3125qGZcsDXimK4QNA8FVYhPMn");
  466. NSLog(@"rkEyVudvDwo6tmC");
  467. NSLog(@"Uh61nGwl5rWziBMsHV8vjbm2fRp0g");
  468. NSLog(@"KJTz7wFWjfuybi3Ucn8EAvodrlQ6");
  469. NSLog(@"nKcNl5HpquaDhAVTZiXYJUzv81gP3Qobr");
  470. NSLog(@"mesZwWbNKJMEl8udkq");
  471. NSLog(@"dGtzaMpyqYQ5i2TC6JHOxBnAsIrR9KWU");
  472. NSLog(@"3Pef6QszDi2bCknGKwU");
  473. NSLog(@"9gOBPCaSYsubyVrlQR");
  474. NSLog(@"q9sbyhY5GJuFnPez4iQ7WIcZ1KUkpxA");
  475. NSLog(@"wToIr7sZnMYDG");
  476. }
  477. -(void)aLN9env:(UIColor*) aLN9env aOL1QD8J:(UIWindow*) aOL1QD8J amAsPp4xX:(UIFont*) amAsPp4xX aMburV:(UIFont*) aMburV a4xOt3ECJYS:(UIImageView*) a4xOt3ECJYS a1Rjiqe:(UIInputView*) a1Rjiqe a2FXfK:(UIDocument*) a2FXfK aQWopy61IUj:(UIEdgeInsets*) aQWopy61IUj aarQWDbN:(UIScreen*) aarQWDbN aWS9AgxOP:(UIInputView*) aWS9AgxOP a74we0CnjGE:(UIMotionEffect*) a74we0CnjGE acBn0:(UIScreen*) acBn0 aX7L1dBe:(UIFontWeight*) aX7L1dBe a6zhtUZE:(UIFontWeight*) a6zhtUZE aft79uEONC:(UIDocument*) aft79uEONC a63lK:(UIKeyCommand*) a63lK azelTvRAB8:(UIAlertView*) azelTvRAB8 a3nxqFvo0:(UIFontWeight*) a3nxqFvo0 {
  478. NSLog(@"x0eYEVndsRuNW4rBhcgGTC7DyM");
  479. NSLog(@"4UVZ0DBpQnOiRbMT8");
  480. NSLog(@"cFfJzqnlsEMkRKg5QaDhi6I0r4d");
  481. NSLog(@"sTfZqJi7ltu89NzbgMBeCYcSDnw6xKhPApEd");
  482. NSLog(@"YfOoxDUkip9HtE7cJhle0yInQrzCPug8");
  483. NSLog(@"azYZ59NvSgGO2slxWnLFeqEtTU76dyfI");
  484. NSLog(@"PpgEyF9bz2YLwv5AMilu7aU8qfrx0jsOo");
  485. NSLog(@"LjKMzhDo4a");
  486. NSLog(@"1V8UPSexIDRl");
  487. NSLog(@"8wvdMelYbHy2mk");
  488. NSLog(@"9fTCqQZ0khgBtEUmo3uIi41LrwyAMKRXY8vG");
  489. NSLog(@"J7KWH4R32TnLcCEaMbewqpzAk");
  490. NSLog(@"UzeWLP18YDBZVlCAGs3");
  491. NSLog(@"Dul7fZgwYxJ9kC2niUT");
  492. NSLog(@"vA4hI6bnj9VD7MCOYaHlNiSuGUgPe8xBKotw");
  493. NSLog(@"zhRI7cCqKaknQJMwyGp");
  494. NSLog(@"Cl0BQgGm6SFLn2Hf1KzWOcsT5yM3hJkp");
  495. NSLog(@"CGeYagRmPkzqE2OXwHNlZMh5");
  496. NSLog(@"kAPEJcI7ir5");
  497. NSLog(@"F8aopn6vSBVZ2bm3H");
  498. }
  499. -(void)aSrYeHO:(UIDocument*) aSrYeHO aNKL73m9R8f:(UIFontWeight*) aNKL73m9R8f aoqgKD2GOF:(UIControl*) aoqgKD2GOF aOWeIMS6bj:(UIKeyCommand*) aOWeIMS6bj a85nBa:(UICollectionView*) a85nBa a70GaJDhs4y:(UIImageView*) a70GaJDhs4y a5N94b6Exj:(UIColor*) a5N94b6Exj acA0ed:(UIEvent*) acA0ed {
  500. NSLog(@"AX4wjgmZn0hHuk6KLqbiBPU97JVYslFxft5e");
  501. NSLog(@"dF0Ok1afWpvr75mxRX4Gh8oMYSbKT2");
  502. NSLog(@"KAD8CWjJt1vaUrpnNyQ0xd4BZ2cqHoizgukTY7E");
  503. NSLog(@"ovcbABxMFXnuK1ly6ZsIHPdthgNRGY7Vi9");
  504. NSLog(@"T9WaJZ4QNoPqug");
  505. NSLog(@"BdfMWxcQqNkL45I8nsCoh");
  506. NSLog(@"p1IhnBf7UdsDvFS4cRkye");
  507. NSLog(@"O2pmSKwQWZUnXYMt5czTIg");
  508. NSLog(@"2WbIVmHU3ahsQZk");
  509. NSLog(@"gDSUwycdCqnuQRr8zf");
  510. NSLog(@"bXpVAyE7GmiTMUYDLurcxFCsN19aRKOnQg0t2I");
  511. NSLog(@"AFxBYCU5R3hr9ldX0yof8cTz");
  512. NSLog(@"xjYNT65Qdt9rvonq0kO4g");
  513. NSLog(@"6ALK9WjveXM80yO1iDPSp5mhfYdlEZJQs");
  514. NSLog(@"UROyK2c1mBnlS5WgHED0j7z9e");
  515. NSLog(@"awuy5TQtOD8LmUpGRrnNv6Sx0HcEoVzqg");
  516. NSLog(@"cWzgL2Nj9kM");
  517. NSLog(@"ojhd0XkvHlyeWY");
  518. }
  519. -(void)aGdwyhm5ibT:(UIFontWeight*) aGdwyhm5ibT ag6mkN7Oa:(UIEdgeInsets*) ag6mkN7Oa aMpF4u:(UIBarButtonItem*) aMpF4u auLqgZQ2:(UIViewController*) auLqgZQ2 a4ITAl:(UIImage*) a4ITAl a47AhUs8gx:(UIUserInterfaceIdiom*) a47AhUs8gx amlkT:(UIEdgeInsets*) amlkT aKQtFyIRbAq:(UIInputView*) aKQtFyIRbAq aql59M0K:(UIFont*) aql59M0K a0DlQJOVLf:(UIEvent*) a0DlQJOVLf arUs7p:(UIActivity*) arUs7p aXtNH7FV59:(UIBarButtonItem*) aXtNH7FV59 aqJM8pfYg:(UIMenuItem*) aqJM8pfYg a9s5VTApy:(UIActivity*) a9s5VTApy apBM8H0A:(UIControlEvents*) apBM8H0A aAJeftiY:(UIImage*) aAJeftiY {
  520. NSLog(@"vIjAF6lu82TMsUby4fZadoOiKRXnHgz3GChrN");
  521. NSLog(@"tdYp1XDuZA3L9G5IUykqRMTJcv6oiw");
  522. NSLog(@"ufZb2kG69AC1ao5qil3YhHVO");
  523. NSLog(@"A7K5SRxfDh08Ty3");
  524. NSLog(@"sPuhQV4CJlM8UFW1eKfnGqYmO3Iijv");
  525. NSLog(@"yr9uapOYQFSPlA73MHWv");
  526. NSLog(@"PUIkfijJrBW");
  527. NSLog(@"ZwXUMF8pafBdi7o");
  528. NSLog(@"Jx9zTReKEgd6S0");
  529. NSLog(@"QeBzJi9WVI3jDZ0S2yPmN7fUw6");
  530. NSLog(@"v5EoT9DsXwiyWrnNlxdpkStuBI7HcUa");
  531. NSLog(@"T4J0dvptMBm");
  532. NSLog(@"VryhTmEuINs9GFlO4oajD8YHbPWR7cZB3gQXf0vt");
  533. NSLog(@"6YiTGHUm0FLayO17pconzt");
  534. NSLog(@"uzDJstRq0WyAg1UN8GIeTZ");
  535. NSLog(@"8YV9Jhnuq7EbMmKTFeHz3GQBC1tkR6L");
  536. NSLog(@"Q0gbIAEcJvOFPp");
  537. NSLog(@"2e7joSmHT5OWhuE6QcB3KiG1p");
  538. }
  539. -(void)aXGMqHB:(UIDocument*) aXGMqHB adk9Yy8LX:(UIMotionEffect*) adk9Yy8LX angzN:(UIBezierPath*) angzN aSUhL:(UIKeyCommand*) aSUhL a1RcazJEs:(UIMotionEffect*) a1RcazJEs aZiSWtUA41:(UIEdgeInsets*) aZiSWtUA41 aYalikVyw5C:(UIAlertView*) aYalikVyw5C {
  540. NSLog(@"kFJGrWbXNHxdj");
  541. NSLog(@"NQjq4CaDLycs3IVRu1HJfkoBrUXeAx20pTgKP");
  542. NSLog(@"QVJdfMT7zyxBAah21Xs6rt");
  543. NSLog(@"TEihI9WrlQGx1PdFuyVngDB");
  544. NSLog(@"RDZjS8tcuC");
  545. NSLog(@"5IwyBk4T1YZzMalQbXJjGsCUNqoAcR2un8LmeOh");
  546. NSLog(@"LjO09ymZGopQsghd62rUfAXiNT");
  547. NSLog(@"6G9L7RmnzlhwXxDUHQc");
  548. NSLog(@"3Cz7r6vnIskw9SubmU2pPgF0R5Tq8ihJEoyXYHDW");
  549. NSLog(@"2dqlm5QpeAJDcTxsguIGOboh");
  550. NSLog(@"YeExf1kB4gDzyvcJl2Cqw0HpQL9PiGobnSR");
  551. NSLog(@"IMmcA3hUTlKN");
  552. NSLog(@"MRIDEHAlopJUrmb8SqeNfGY0ZV");
  553. NSLog(@"t0QjzsrvPTBW9X2bCFdp");
  554. NSLog(@"VBydJEszGZKHOeASnXMrNUD");
  555. NSLog(@"xpKg8AVGoCabNZmjXH3FintRlOsvzdc7I29");
  556. NSLog(@"QlXAseSJwdV9gMqYIicFnN7OB8mhPCG1Rb5j");
  557. NSLog(@"52JMLysXEl6BRFhHZU");
  558. NSLog(@"vVIh2UkFy1945wu7NMAQR0gqbcxEpadeSJXZsW");
  559. }
  560. -(void)aOXsjkSV:(UIEdgeInsets*) aOXsjkSV amM7dQK1OZ:(UIMenuItem*) amM7dQK1OZ aJf8t4oc3q2:(UIControl*) aJf8t4oc3q2 aBYcrIgbR:(UIViewController*) aBYcrIgbR aeyVsukYtLA:(UIDocument*) aeyVsukYtLA avJUOm4:(UIEdgeInsets*) avJUOm4 aUkMSZIxKY:(UIScreen*) aUkMSZIxKY aRtcvGhEyX:(UISwitch*) aRtcvGhEyX aMXpJuvyw3:(UIAlertView*) aMXpJuvyw3 aRi6Qy7:(UIUserInterfaceIdiom*) aRi6Qy7 aB1Y8C:(UIEvent*) aB1Y8C aTQhaWy:(UIImage*) aTQhaWy aLRpzhwV:(UIMenuItem*) aLRpzhwV aRhQvFs1:(UIInputView*) aRhQvFs1 ag7lMYPrI:(UIDevice*) ag7lMYPrI aeAwjJF:(UIVisualEffectView*) aeAwjJF aAqSn:(UIApplication*) aAqSn a9HZnl:(UIUserInterfaceIdiom*) a9HZnl aOwAg7eTGv:(UIUserInterfaceIdiom*) aOwAg7eTGv am1Nkued:(UIBezierPath*) am1Nkued {
  561. NSLog(@"V7BefWA1Uwub04CjhK");
  562. NSLog(@"3SoQbCrW1zLdiGvRMA0fkVhY");
  563. NSLog(@"YSa2ZrtX50FW7xvdMmyU8lT");
  564. NSLog(@"qF7mjtr4Xg");
  565. NSLog(@"oJwpcZQN41tMg");
  566. NSLog(@"45jdiZzAHt7MvoP1CLFq");
  567. NSLog(@"f8k4I1MeSVL5yAv6az");
  568. NSLog(@"R3ObCsglkK4H1hIwBYp");
  569. NSLog(@"26ZsiYGof0QOHbqdenBXJrxLuUmC7RlEK3AT1c");
  570. NSLog(@"xErjMoJGhg2falyVAN");
  571. NSLog(@"XIGkdShcu2Wf6bReinwlKT8gxqQULjDE");
  572. NSLog(@"qSl5koTDInmbv4V7UNdQaX0RrheuJiFGzWB163");
  573. NSLog(@"E4iHKd26MTkS");
  574. NSLog(@"EN2wlKd9Jq7sYkUjmir3RMtaHTSg6vb45Bu8");
  575. NSLog(@"CGdB3iOQkDZ240brHyXlF");
  576. NSLog(@"RvBZUkEds32Q7YWSmFqT5XyelC");
  577. NSLog(@"8mcakWeAdRLOrS7x");
  578. NSLog(@"NtC8B0VPfyHjbp5UF1Yg7m6EaxdnrKWORJcwzS");
  579. NSLog(@"4rluKHDh3tiO7cAV0F6");
  580. }
  581. -(void)aSIL5G:(UIImage*) aSIL5G aCFWL:(UIMotionEffect*) aCFWL apzKWc0B:(UIImage*) apzKWc0B aH7o4yh6uk:(UIEdgeInsets*) aH7o4yh6uk aFvSxdukqz:(UIKeyCommand*) aFvSxdukqz aeU8kiZGH:(UIFont*) aeU8kiZGH axrQeUp1Jg:(UIBezierPath*) axrQeUp1Jg a0m4TJwAIO:(UIView*) a0m4TJwAIO {
  582. NSLog(@"xoHR0Ydf6kaPvFh2cK");
  583. NSLog(@"FrswLDKQ9c7UmP1g6");
  584. NSLog(@"uHXsvdUmfFNbL34ce87iKnj6Yzo");
  585. NSLog(@"DHrG9dNhfeIQC");
  586. NSLog(@"zJeIbDB4n8T");
  587. NSLog(@"3AuHgfxR1aKzB5Lp4GYNdoiPF86JT");
  588. NSLog(@"PvnKtfUiJwgV2kmMFDHeERSjbcBq");
  589. NSLog(@"5x1ZFTGBzQtPdmUnb");
  590. NSLog(@"102ZR9MayNfCQ3oVTIWkisDS5YXbem");
  591. NSLog(@"JZlbkm7hvqF3HxnXPSYr98");
  592. NSLog(@"XzsmU4JIuTA3MVZibvaOQgc1f6L0rnECtGDH8");
  593. NSLog(@"aznpJYdj6tUE");
  594. NSLog(@"5kTtq9yU783AjVDlLJ");
  595. NSLog(@"5OTirdpGf39FxzIwe7Jj4UKXZnYoycChu8k2M");
  596. NSLog(@"k03GuZUOSpvoCr2Te6KY9R");
  597. NSLog(@"YgxmdX1GzptjTv8ENLVnkwhi");
  598. NSLog(@"390tAi7YCLPXoKsl");
  599. }
  600. -(void)aXZRWAQBKtu:(UIImage*) aXZRWAQBKtu a0l9O5u:(UIButton*) a0l9O5u aACUtV:(UIControl*) aACUtV aIYxZLiQD:(UIVisualEffectView*) aIYxZLiQD aNav6OAom:(UILabel*) aNav6OAom aCZ2nT4q:(UIDevice*) aCZ2nT4q aigXocDn5Ah:(UIBarButtonItem*) aigXocDn5Ah acGiB8kx4J7:(UIEdgeInsets*) acGiB8kx4J7 aIqYeMg:(UIActivity*) aIqYeMg aBokI:(UITableView*) aBokI ao2Av3U0:(UICollectionView*) ao2Av3U0 {
  601. NSLog(@"bHrv79AMUV8nJSlITejB60");
  602. NSLog(@"NiljSbxz0VK4dHt87ITZFfoEy");
  603. NSLog(@"mKD5CatjL4fPIiAoseQO");
  604. NSLog(@"N4dkOUmsi8");
  605. NSLog(@"dzqoZS7bfW4nh3cw1");
  606. NSLog(@"HjsBfUpq4ObiRMNogA");
  607. NSLog(@"jrtD18UhiLvcFMGeHxq");
  608. NSLog(@"0rEXpDijel");
  609. NSLog(@"9jVWZbomCA52ezp8n46t");
  610. NSLog(@"pey05tvKfMQAub1DraWz4mIJHxOljsPSLT2FnYqw");
  611. NSLog(@"JUt4b6wxszdHk");
  612. }
  613. -(void)a1Ff7hTQ4mN:(UISearchBar*) a1Ff7hTQ4mN a9xeKMRDFTN:(UIImage*) a9xeKMRDFTN aEjTwctK:(UIKeyCommand*) aEjTwctK aFYIML:(UISearchBar*) aFYIML aGli8FNgE:(UIEdgeInsets*) aGli8FNgE aWUNX:(UIEvent*) aWUNX a9Qxd:(UIBarButtonItem*) a9Qxd {
  614. NSLog(@"DcoINt9harXijs");
  615. NSLog(@"4k1qy98fO27");
  616. NSLog(@"6xS1uCZWiBTKNklhYe7Adbwzy");
  617. NSLog(@"9e8RZToBVlPk0fWKid");
  618. NSLog(@"vBiVqteLKukDOHb46UrW8JNnchdT2aRsZIm7");
  619. NSLog(@"HYgQEjsdyiCZJ57DnWGfIS2leRKpV4FUaqMw8o");
  620. NSLog(@"BEha8mwiAncTM3Uy50CG4oKFLeN7vdqkOVQb1Sl");
  621. NSLog(@"bi7I4VhwNg2tYT9aFu5ldWRPQG6ryHfEXB");
  622. NSLog(@"fJogYhUuvn6yr3AGqWZp70xtMaRDsEQKc9i");
  623. NSLog(@"p79GU3vO8QwbaF4Iq");
  624. NSLog(@"tSAlswnf0COIhkB2uP5KHDNv3TJVm9qUydzb");
  625. NSLog(@"XCV5HeMpPlagDtnTxZsFfONi4Rj8Lbq76JG");
  626. NSLog(@"KkzCPOjM6lY9HTadw");
  627. NSLog(@"U210AHxuResEybZzapwOc9L");
  628. }
  629. @end