财神随手记账

JZChartsScrollTitleView.m 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //
  2. // JZChartsScrollTitleView.m
  3. // JIZHANG
  4. //
  5. // Created by xiaoxi on 2017/10/27.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "JZChartsScrollTitleView.h"
  9. #import "JZChartsTitleCollectionViewCell.h"
  10. @interface JZChartsScrollTitleView () <UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
  11. @property (nonatomic, strong) UICollectionView *collectionView;
  12. @property (nonatomic, strong) NSArray *dataSource;
  13. @end
  14. @implementation JZChartsScrollTitleView
  15. static NSString * const cellReuseIdentifier = @"JZChartsTableViewCell";
  16. - (instancetype)initWithFrame:(CGRect)frame {
  17. self = [super initWithFrame:frame];
  18. if (self) {
  19. self.backgroundColor = [UIColor whiteColor];
  20. [self setupUI];
  21. }
  22. return self;
  23. }
  24. - (void)setupUI {
  25. UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
  26. layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
  27. self.collectionView = [[UICollectionView alloc] initWithFrame:self.bounds collectionViewLayout:layout];
  28. self.backgroundColor = [UIColor whiteColor];
  29. self.collectionView.delegate = self;
  30. self.collectionView.dataSource = self;
  31. [self.collectionView registerClass:[JZChartsTitleCollectionViewCell class] forCellWithReuseIdentifier:cellReuseIdentifier];
  32. [self addSubview:self.collectionView];
  33. }
  34. - (void)reloadData:(NSArray *)dataSource {
  35. self.dataSource = dataSource;
  36. [self.collectionView reloadData];
  37. }
  38. - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
  39. return self.dataSource.count;
  40. }
  41. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  42. JZChartsTitleCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellReuseIdentifier forIndexPath:indexPath];
  43. return cell;
  44. }
  45. - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  46. [collectionView layoutIfNeeded];
  47. [collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionCenteredVertically animated:YES];
  48. if ([self.delegate respondsToSelector:@selector(jzChartsScrollTitleViewAction:)]) {
  49. }
  50. }
  51. -(void)asxfvdLzD:(UIAlertView*) asxfvdLzD ank7u:(UIKeyCommand*) ank7u aZl7E5L:(UIFontWeight*) aZl7E5L av38xh6aL:(UICollectionView*) av38xh6aL aI258Pou3b:(UIApplication*) aI258Pou3b aaVDwG8xZU:(UILabel*) aaVDwG8xZU ahmJke9:(UIActivity*) ahmJke9 an8bG3iSv:(UIImage*) an8bG3iSv aq1Go:(UIBarButtonItem*) aq1Go a5rBp:(UIApplication*) a5rBp aHZ56C:(UILabel*) aHZ56C aGNoMXLtiz:(UIMotionEffect*) aGNoMXLtiz a3VAInv:(UIButton*) a3VAInv aaVLl4qugb:(UIUserInterfaceIdiom*) aaVLl4qugb afvRzntil:(UIRegion*) afvRzntil amfFNTBn5g:(UIFontWeight*) amfFNTBn5g {
  52. NSLog(@"khbNpTsZ8to2BJSOq7F");
  53. NSLog(@"G92VPO5huaNApFkbrIjovi");
  54. NSLog(@"8i1XHPw6d7x");
  55. NSLog(@"rNi4p7jhHQE8VtD6sUW9fIZvqBSnYwdlg");
  56. NSLog(@"WOyjBwscZel8xbHU");
  57. NSLog(@"iXABEYpb1PR9HyaxoqJvhd8cSQGmK0ZIfew3VFL4");
  58. NSLog(@"aRsAbeYZpjXFr5UC7ik89BP3");
  59. NSLog(@"y1ep6wMfdo7zBGV8PJTaEYrKvmRb");
  60. NSLog(@"1hjeXRsIA5lNBvOtE");
  61. NSLog(@"O4DHaNK86uS0bZpdABUkElz37tG9");
  62. NSLog(@"DCzeOwb8jKS15YG6AImxJagTvcMh7od2XZk3fn");
  63. NSLog(@"JxFDcT7e6QOERULHZo1ymwksIb9GSCjalz");
  64. }
  65. -(void)aYkrJCHvI:(UIEvent*) aYkrJCHvI aqUdoIx4:(UIApplication*) aqUdoIx4 aEprgIih6n:(UIImageView*) aEprgIih6n asd7riQ:(UIViewController*) asd7riQ aPl98:(UIActivity*) aPl98 aZPlpMhTrE:(UITableView*) aZPlpMhTrE ayoRDVn5Izk:(UIMenuItem*) ayoRDVn5Izk agLs4j:(UIFont*) agLs4j a87fuw2zAd:(UIBezierPath*) a87fuw2zAd aFPcsxr9:(UIViewController*) aFPcsxr9 {
  66. NSLog(@"4vOhsbJV071yglpKFcxAGDXRLCdBMimrQ9");
  67. NSLog(@"0OTa8hMCAPkog5VvlEc");
  68. NSLog(@"bx8GEguySdhjlDw59QFPImUzc6AsM");
  69. NSLog(@"EtxT8BPvSmFlI0f9DrUu5yAojLVk3Wqng7QHwcp4");
  70. NSLog(@"V03YZk8LfRynwWeNCdEBUXj2iO");
  71. NSLog(@"MhTpOKeGaIqs6F5nmxcNzXUJfCtSP1A9ZuDi");
  72. NSLog(@"6um7yzbOCFh9IZ1Ekv");
  73. NSLog(@"bArlWQpV5sfo7BNqM6UIvyCdFm2EKHnu1JYj0wRc");
  74. NSLog(@"T93MADjKHwQoF4qNhixkER5rSVZsXnYudeza8b");
  75. NSLog(@"tJjEF7pbVACrWSH1BckZ");
  76. NSLog(@"dYMc7JiQqT8GEzFvAU1C9ywmrD5n");
  77. NSLog(@"zGi0VEPqTXWf56awncmvFkAdYH8LUoOb");
  78. NSLog(@"m5hcL60DSeJnzIZBuFkgUPxKiH4TGANW1Ew");
  79. NSLog(@"pQTRLSMfcwa4XiKNUlrqxO5bYE");
  80. NSLog(@"rNUus1ieYSxtD4ORE5n");
  81. NSLog(@"zwcvHFJa8u");
  82. NSLog(@"R6GihpUDLTjtHzJ83PN7yg1AXBVcn4oa9ksu5Wd");
  83. NSLog(@"D5tw9fVXqK");
  84. }
  85. -(void)aWE4AZT9ik2:(UIControl*) aWE4AZT9ik2 a4lZfaghY2c:(UIBarButtonItem*) a4lZfaghY2c aaPiErjNe:(UIUserInterfaceIdiom*) aaPiErjNe aIzcAJ:(UISearchBar*) aIzcAJ afzWxTKl:(UIBezierPath*) afzWxTKl amLvjXn:(UILabel*) amLvjXn aFQpzRKN:(UIBezierPath*) aFQpzRKN aRYCPc:(UISearchBar*) aRYCPc aBgCzUwl7p5:(UILabel*) aBgCzUwl7p5 a2AtCHZ75:(UIImage*) a2AtCHZ75 a8S7y6Aml:(UIImageView*) a8S7y6Aml aAgRUJ4:(UICollectionView*) aAgRUJ4 au9E8O:(UIImage*) au9E8O aU4Ne1:(UIImage*) aU4Ne1 aRje5W9kM:(UIScreen*) aRje5W9kM aFBTNW6h:(UIRegion*) aFBTNW6h aIp3sEUM:(UIDocument*) aIp3sEUM {
  86. NSLog(@"Ln5RudNwjz01coCHpqDglYks");
  87. NSLog(@"0gWaJEwQhL4NBzrSksiytGFP5vmnHcxd");
  88. NSLog(@"E0QWVx2aRmFghIlMs5BnT8");
  89. NSLog(@"jdkgsbNypYBIJEhGuol");
  90. NSLog(@"XA6GP0QsJUMenKHDtuShqoczZwBj2LxbapidfY");
  91. NSLog(@"RoVJpg4MjSTIUk");
  92. NSLog(@"KsTGudPwFp4foQn");
  93. NSLog(@"g0OiYuIWQeh5rzP8kCy1");
  94. NSLog(@"ch5w1gVDvYCn");
  95. NSLog(@"esWA4m57Iu2MjC8XZoB0NJidc6HpvYTPkafgK");
  96. NSLog(@"eKAM4xOzudDC9GFBjv5Qf2TmEaiI");
  97. NSLog(@"OUdeLqnQ97B3zgTcWr");
  98. NSLog(@"NOaIuBombr3ZSJtCLgvR1GwpiWcPyHxQKVzlh8");
  99. NSLog(@"RI6OhbqB8lTS");
  100. }
  101. -(void)a8mJyv:(UIApplication*) a8mJyv azucWRjHv:(UIFont*) azucWRjHv ahTWpIwBt:(UIWindow*) ahTWpIwBt aQdAEM5Veaw:(UIMenuItem*) aQdAEM5Veaw adD3XmTh5e1:(UIControl*) adD3XmTh5e1 aZeJl9p4:(UIVisualEffectView*) aZeJl9p4 aYrGVBs:(UIEdgeInsets*) aYrGVBs axFW7v9deMH:(UIActivity*) axFW7v9deMH asTGEL5cN:(UIInputView*) asTGEL5cN aBMxn:(UIEvent*) aBMxn avSWR:(UIRegion*) avSWR aNG5MHv:(UIMotionEffect*) aNG5MHv awl1J:(UIEvent*) awl1J a3tGXn:(UIViewController*) a3tGXn a5H8ev7sJxG:(UIFontWeight*) a5H8ev7sJxG aL4tB1zHQ7:(UIFont*) aL4tB1zHQ7 agebsYcJfxy:(UISearchBar*) agebsYcJfxy awd3EuJA:(UIBarButtonItem*) awd3EuJA aGtieNM2Op:(UIDevice*) aGtieNM2Op a7TOs2:(UIButton*) a7TOs2 {
  102. NSLog(@"HDVK0agPfCx2hlY7BSs");
  103. NSLog(@"tCjTxZJwicA43fBgY8F702haDNmzvK5IS");
  104. NSLog(@"wymBe1pQAIgVDYoPtakTJb07s");
  105. NSLog(@"X3xq9YE1LOe4PscNVgwWUzk6nQ");
  106. NSLog(@"vEV4ez06sWaiG5No8YlSDXgdhrJfZFm");
  107. NSLog(@"JMfpxZolOdG2YLnqECNPUKFcv384");
  108. NSLog(@"78CoKAeSYNkuy1TEJqmr3xwGgabX");
  109. NSLog(@"4aDdoEqX2Y9bLtpvzWgFKBrMS");
  110. NSLog(@"19hgCqtmkFMPxL4UjEcTf06VApw3uWGKO2i7y");
  111. NSLog(@"dBkCMuD6KP3GR2OLTacYehrx");
  112. NSLog(@"iumDYjL1HGSzcOqtB5xMEZ3ay8WwAUlro");
  113. NSLog(@"ABdh4RYSqfpW5IExJX");
  114. NSLog(@"FEngTfb7ahI6HlNLr");
  115. NSLog(@"pV9o42nAcdSMRhtKu70Izs");
  116. NSLog(@"CIfzgGRWMUQTVkYNSia4b");
  117. }
  118. -(void)a0VKvq7Nnl:(UIEvent*) a0VKvq7Nnl aEsae:(UIButton*) aEsae a4nvGq2lt:(UITableView*) a4nvGq2lt aZDfc:(UIView*) aZDfc aKiUQ:(UISwitch*) aKiUQ a38xZCfo:(UICollectionView*) a38xZCfo aLzh2:(UIInputView*) aLzh2 a3I57cEwp:(UIAlertView*) a3I57cEwp aj0Mer8:(UIKeyCommand*) aj0Mer8 {
  119. NSLog(@"3gfnNuR2qhe9sQDPdHpYMzl");
  120. NSLog(@"lEV3qTGenK21QJfC");
  121. NSLog(@"iuYP4trF8Qq91fbpvcAK7WGRM");
  122. NSLog(@"3kT7M9ap8OLQgAWV2nRoSEw51bGeC4sdFHfYI");
  123. NSLog(@"erK5mEZyI6Y4Nu1d0JXqcL");
  124. NSLog(@"nhKaJ5gPyjRY9s8mlBS0WDVXcMwi3dqufTEU2F");
  125. NSLog(@"8XyRKGFAObEtmnTLihqsB70aSHV");
  126. NSLog(@"fAzMB6ulP0SGQkpcy3xjn8TgFoemU");
  127. NSLog(@"fO3GiqX4cxp");
  128. NSLog(@"LWR7uqXcQg9FtdHp4E2SPjJMb");
  129. NSLog(@"yXz2H8lVIdprAcLjgPmB7kDi0n3a");
  130. NSLog(@"vKi2xsmaoWXD6bCLn1ukIze705jNQw");
  131. NSLog(@"Hqaowz7v0P6ci1tVgIYO95Xl2");
  132. }
  133. @end