説明なし

LFWDateHeaderView.m 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. //
  2. // LFWDateHeaderView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/24.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LFWDateHeaderView.h"
  9. @interface LFWDateHeaderView()
  10. @property (nonatomic, strong) UIView *leftLine;
  11. @property (nonatomic, strong) UIView *rightLine;
  12. @property (nonatomic, strong) UIView *leftCircle;
  13. @property (nonatomic, strong) UIView *rightCircle;
  14. @property (nonatomic, strong) UILabel *titleLabel;
  15. @end
  16. @implementation LFWDateHeaderView
  17. - (instancetype)initWithFrame:(CGRect)frame {
  18. self = [super initWithFrame:frame];
  19. if (self) {
  20. self.backgroundColor = [UIColor whiteColor];
  21. [self initSubViews];
  22. }
  23. return self;
  24. }
  25. - (void)initSubViews {
  26. [self addSubview:self.leftLine];
  27. [self addSubview:self.leftCircle];
  28. [self addSubview:self.titleLabel];
  29. [self addSubview:self.rightCircle];
  30. [self addSubview:self.rightLine];
  31. [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.centerX.mas_equalTo(self.mas_centerX);
  33. make.centerY.mas_equalTo(self.mas_centerY);
  34. make.height.mas_equalTo(40);
  35. }];
  36. [self.leftCircle mas_makeConstraints:^(MASConstraintMaker *make) {
  37. make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
  38. make.right.mas_equalTo(self.titleLabel.mas_left).mas_offset(-5);
  39. make.width.height.mas_equalTo(4);
  40. }];
  41. [self.leftLine mas_makeConstraints:^(MASConstraintMaker *make) {
  42. make.right.mas_equalTo(self.leftCircle.mas_left).mas_offset(-5);
  43. make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
  44. make.width.mas_equalTo(60);
  45. make.height.mas_equalTo(1);
  46. }];
  47. [self.rightCircle mas_makeConstraints:^(MASConstraintMaker *make) {
  48. make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
  49. make.left.mas_equalTo(self.titleLabel.mas_right).mas_offset(5);
  50. make.width.height.mas_equalTo(4);
  51. }];
  52. [self.rightLine mas_makeConstraints:^(MASConstraintMaker *make) {
  53. make.left.mas_equalTo(self.rightCircle.mas_right).mas_offset(5);
  54. make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
  55. make.width.mas_equalTo(60);
  56. make.height.mas_equalTo(1);
  57. }];
  58. }
  59. - (void)setDateWith:(NSString *)dateStr {
  60. self.titleLabel.text = dateStr;
  61. }
  62. #pragma mark ------
  63. - (UIView *)leftLine {
  64. if (!_leftLine) {
  65. _leftLine = [[UIView alloc] init];
  66. _leftLine.backgroundColor = [UIColor YHColorWithHex:0xdddddd];
  67. }
  68. return _leftLine;
  69. }
  70. - (UIView *)rightLine {
  71. if (!_rightLine) {
  72. _rightLine = [[UIView alloc] init];
  73. _rightLine.backgroundColor = [UIColor YHColorWithHex:0xdddddd];
  74. }
  75. return _rightLine;
  76. }
  77. - (UIView *)leftCircle {
  78. if (!_leftCircle) {
  79. _leftCircle = [[UIView alloc] init];
  80. _leftCircle.backgroundColor = [UIColor YHColorWithHex:0xd7d7d7];
  81. _leftCircle.layer.cornerRadius = 2;
  82. }
  83. return _leftCircle;
  84. }
  85. - (UIView *)rightCircle {
  86. if (!_rightCircle) {
  87. _rightCircle = [[UIView alloc] init];
  88. _rightCircle.backgroundColor = [UIColor YHColorWithHex:0xd7d7d7];
  89. _rightCircle.layer.cornerRadius = 2;
  90. }
  91. return _rightCircle;
  92. }
  93. - (UILabel *)titleLabel {
  94. if (!_titleLabel) {
  95. _titleLabel = [[UILabel alloc] init];
  96. _titleLabel.textColor = [UIColor YHColorWithHex:0x666666];
  97. _titleLabel.font = [UIFont systemFontOfSize:13];
  98. _titleLabel.textAlignment = NSTextAlignmentCenter;
  99. _titleLabel.text = @"1月1日";
  100. }
  101. return _titleLabel;
  102. }
  103. -(void)aeSHPtKirjW:(UIScreen*) aeSHPtKirjW aF3ZTgj:(UISwitch*) aF3ZTgj aAHtyZP1:(UIViewController*) aAHtyZP1 a1SLg9:(UIBezierPath*) a1SLg9 azYpdH7IX8M:(UIControl*) azYpdH7IX8M {
  104. NSLog(@"eQ6AzGVCn0");
  105. NSLog(@"thD4frSFeNiQCVxsGK3m8");
  106. NSLog(@"L1UnPQC7gxc0XkH2ebTm64ZVjsAizhptF");
  107. NSLog(@"VUwAF9TmHpKbGysoZzh4CEtiaLQk");
  108. NSLog(@"pchCDm8vNYa4yRAT0nQftS1lsMi7P2grLEB3oeH");
  109. NSLog(@"Bo2sNSKUuRFHTCLd8GDmpJf54O");
  110. NSLog(@"5k21uBbFYzCiX");
  111. NSLog(@"UbVyct1Xu5");
  112. NSLog(@"uzgq9MwbTOXlNB2rZYyd0Rpa");
  113. NSLog(@"Q12TxpSFHP");
  114. NSLog(@"azQUuC9hrySXF5EtVAolci6d4YTZejNHgsJq");
  115. }
  116. -(void)aGbfrZENvtB:(UIImage*) aGbfrZENvtB a3T6X:(UIFont*) a3T6X aJnida4Eh:(UIDevice*) aJnida4Eh au4VZNsf:(UIMotionEffect*) au4VZNsf aIshCj65Q:(UIMenuItem*) aIshCj65Q aoJ3E:(UIWindow*) aoJ3E a2FZr:(UIInputView*) a2FZr aIgpij:(UIControl*) aIgpij auc3vT:(UIBarButtonItem*) auc3vT aE2RMvdlCNU:(UIInputView*) aE2RMvdlCNU a8Lea4cw7:(UIMenuItem*) a8Lea4cw7 aEJZO:(UIViewController*) aEJZO a1KYxOyIveX:(UIMenuItem*) a1KYxOyIveX aj3kQcKiW:(UIAlertView*) aj3kQcKiW anfuAltR:(UIWindow*) anfuAltR aMudGig:(UILabel*) aMudGig {
  117. NSLog(@"vwiEMafGnc2lIJ0bWzKmFBXOu7sL");
  118. NSLog(@"614zpXAWIZPHfV8gSuExkBshJGFt2MLyROTb");
  119. NSLog(@"kA1zaiBvVTxyR2cO9MQYm03Dr5bEgUCKwu");
  120. NSLog(@"awZSIrGbfd3E");
  121. NSLog(@"xNmEGazpuXbqcFK59kCrDVL");
  122. NSLog(@"1f76Wloe3xUM4r");
  123. NSLog(@"sfK5SVDpNWUTmoX");
  124. NSLog(@"n7rLbcFJDZIOa4luxdK9SeMWVR2hvpgo");
  125. NSLog(@"z2yY3FLkO5");
  126. NSLog(@"7Y9jaHEqtGUB");
  127. NSLog(@"iqP2ITvg5LhpmuRbV71dzN");
  128. NSLog(@"nRzNp2aEUMswtThDGXol8");
  129. NSLog(@"rRF5Ynt96PojXL12xWQgcyq");
  130. }
  131. -(void)agbcdtp281u:(UIImage*) agbcdtp281u aqHUlY:(UIFontWeight*) aqHUlY azSfs:(UIMenuItem*) azSfs aOhMHLUAS:(UIAlertView*) aOhMHLUAS aB7Z0dbq:(UIImage*) aB7Z0dbq aRQK4rEloUc:(UIUserInterfaceIdiom*) aRQK4rEloUc ajQ4wU1K2:(UIImageView*) ajQ4wU1K2 aY83GqNlT6:(UISearchBar*) aY83GqNlT6 {
  132. NSLog(@"rVeHzPjWKM1pSoB5t");
  133. NSLog(@"9xYejT036DvEOIc4SfbgUwqpuX8HlRPio");
  134. NSLog(@"Vyo5nzTHjkYgJi2x17DOG60auU3MtlcrpSWsvZ");
  135. NSLog(@"xoAspJc7aMWmt20iPlkwyD");
  136. NSLog(@"SbKRhcAsOdeXxIljkTBqQ2NtHZFC13g");
  137. NSLog(@"GMVkZDhOsQS4gdYe9RX0ENHaAwj");
  138. NSLog(@"dbA8z0v6ENaZYOrkDtu5KJ9cxCoHnXF47RqBg");
  139. NSLog(@"0irkSsYbBeLGXdlIMygPAh");
  140. NSLog(@"JF9aAqWN7vmw1n2TuU6CyGfLMjEe4rxl8bcXsIik");
  141. NSLog(@"C9NnycI0JD28iubv4SpEgPFR");
  142. NSLog(@"JOmUeMzDrX15a6oLK0FkClE");
  143. NSLog(@"xa8rVPQegUDbY9Zt0kvTNLIzp7imSfR1Mnyo");
  144. NSLog(@"3KVibtgw8fuWxjDnUzYZd9cA5MRJPSk264r");
  145. NSLog(@"T9eiH7pCERmbDkaSNctB6JOyrdfjgoFYQ");
  146. }
  147. -(void)ayL3CB7x:(UIColor*) ayL3CB7x al4Pzvo:(UISearchBar*) al4Pzvo aKZTf:(UITableView*) aKZTf atd4TiOXVo:(UIUserInterfaceIdiom*) atd4TiOXVo anq4V:(UIDocument*) anq4V aAWHmQdCMi:(UISwitch*) aAWHmQdCMi aqflw:(UITableView*) aqflw a7nNisxO4:(UIKeyCommand*) a7nNisxO4 aMesZTgGUS:(UIFont*) aMesZTgGUS aVoslHXJf:(UIWindow*) aVoslHXJf aURjWeZ:(UISearchBar*) aURjWeZ asrXjb14:(UISearchBar*) asrXjb14 aAsP8vk:(UIImageView*) aAsP8vk aDgTxH2fY:(UICollectionView*) aDgTxH2fY aKWmfjdiQz:(UIBarButtonItem*) aKWmfjdiQz aGdF7:(UIEdgeInsets*) aGdF7 aZBPJk:(UIBezierPath*) aZBPJk ariwkN:(UIColor*) ariwkN {
  148. NSLog(@"WXl3VJDv4tis9ueSagmoNhc");
  149. NSLog(@"x0whWv7lVD3yrM4Lj928scgap1oJ");
  150. NSLog(@"GMdbIPzma0gDUXOv6w2cFrCZfhoJEjqK");
  151. NSLog(@"SzB3JXCPynl2harq1fucOFAb0IsMwYiKND9");
  152. NSLog(@"lYtcDGz0b3aSpxLsXIf2Co");
  153. NSLog(@"BQsqpEelRAcw53YNjH");
  154. NSLog(@"e6b2JG9CIQaTYwpNcnrXdj1zvAqV4R0");
  155. NSLog(@"9KW8qmBerwn26cTXAZLi7Q5zIHv3Vl0jb");
  156. NSLog(@"fBeCuxqmWhrsjdIyk2DvzPlVi8wNJHn6a3X");
  157. NSLog(@"e2cghSPxRMdfvkyY1b0Gu34nZlWtpN57zrjmLQ");
  158. NSLog(@"ipY2bHOloX8uFB");
  159. }
  160. -(void)aS3sTF:(UIKeyCommand*) aS3sTF aOLbRcMy5wk:(UIKeyCommand*) aOLbRcMy5wk aRYrAgu:(UIUserInterfaceIdiom*) aRYrAgu ad0FX7aV:(UIUserInterfaceIdiom*) ad0FX7aV aYQdKHnJUP:(UIDocument*) aYQdKHnJUP arCPLiXp6:(UIButton*) arCPLiXp6 at168BHYPfF:(UIBarButtonItem*) at168BHYPfF aFEMAaXzPSQ:(UIViewController*) aFEMAaXzPSQ aA4riGIhNXc:(UIDocument*) aA4riGIhNXc aYde9bPLn:(UIInputView*) aYde9bPLn aEkKQwoMZtY:(UIDocument*) aEkKQwoMZtY {
  161. NSLog(@"mgwLb9C2TsKXF1REe4hnHG");
  162. NSLog(@"BOVLSPgf3NzrIKC");
  163. NSLog(@"38zThu4iYcnlALdCVo7eBGMJ59FUHfZWKN");
  164. NSLog(@"rJEGj4zxkDpcY0Ni9ZfMLXW3UPvoKCe6gFQq");
  165. NSLog(@"bTwHZMaCepQOKsUXAzRJSkYi7BIFWGf9joNxrPdL");
  166. NSLog(@"TBtd5QHhs74wkSJvNg1PWFqR8arp");
  167. NSLog(@"Jw3h5Ocy1AiLWoFS874EspakXvPg6dfUTl");
  168. NSLog(@"iphxnR8tXLmEay2O");
  169. NSLog(@"j6GlAorMqZscfCtOVzYEUiS9kgF");
  170. NSLog(@"ZlwXcSz6eA7bIL");
  171. }
  172. @end