悟空记账

JZUnlockPasswordTableViewCell.m 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. //
  2. // JZUnlockPasswordTableViewCell.m
  3. // JIZHANG
  4. //
  5. // Created by xiaoxi on 2017/12/21.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "JZUnlockPasswordTableViewCell.h"
  9. @interface JZUnlockPasswordTableViewCell ()
  10. @property (nonatomic, strong) UILabel *nameLabel;
  11. @property (nonatomic, strong) UISwitch *cellSwitch;
  12. @property (nonatomic, strong) UIImageView *rightImageView;
  13. @property (nonatomic, assign) NSInteger index;
  14. @end
  15. @implementation JZUnlockPasswordTableViewCell
  16. - (void)awakeFromNib {
  17. [super awakeFromNib];
  18. // Initialization code
  19. }
  20. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  21. [super setSelected:selected animated:animated];
  22. // Configure the view for the selected state
  23. }
  24. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  25. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  26. if (self) {
  27. self.selectionStyle = UITableViewCellSelectionStyleNone;
  28. self.backgroundColor = [UIColor whiteColor];
  29. [self setupUI];
  30. }
  31. return self;
  32. }
  33. - (void)setupUI {
  34. UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectZero];
  35. nameLabel.backgroundColor = [UIColor whiteColor];
  36. nameLabel.font = FONT_SYS(FitSize(15));
  37. nameLabel.textColor = [UIColor middleTitleColor];
  38. [self.contentView addSubview:nameLabel];
  39. self.nameLabel = nameLabel;
  40. UISwitch *cellSwitch = [[UISwitch alloc] initWithFrame:CGRectZero];
  41. cellSwitch.onTintColor = [UIColor baseColor];
  42. [cellSwitch addTarget:self action:@selector(cellSwitchAction:) forControlEvents:UIControlEventValueChanged];
  43. [self.contentView addSubview:cellSwitch];
  44. self.cellSwitch = cellSwitch;
  45. UIImageView *rightImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
  46. rightImageView.backgroundColor = [UIColor whiteColor];
  47. rightImageView.image = [UIImage imageNamed:@"mine_person_arrows"];
  48. [self.contentView addSubview:rightImageView];
  49. self.rightImageView = rightImageView;
  50. [rightImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  51. make.right.equalTo(self.contentView).offset(-FitSize(15));
  52. make.centerY.equalTo(self.contentView);
  53. make.size.mas_equalTo(CGSizeMake(FitSize(6), FitSize(12)));
  54. }];
  55. [cellSwitch mas_makeConstraints:^(MASConstraintMaker *make) {
  56. make.right.equalTo(self.contentView).offset(-FitSize(15));
  57. make.centerY.equalTo(self.contentView);
  58. }];
  59. [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  60. make.left.equalTo(self.contentView).offset(FitSize(15));
  61. make.centerY.equalTo(self.contentView);
  62. make.width.equalTo(@200);
  63. }];
  64. }
  65. - (void)refreshName:(NSString *)name isSwitchOn:(BOOL)isSwitchOn isShowSwitch:(BOOL)isShowSwitch sectionIndex:(NSInteger)index {
  66. self.index = index;
  67. self.nameLabel.text = name;
  68. if (isShowSwitch) {
  69. self.cellSwitch.hidden = NO;
  70. self.rightImageView.hidden = YES;
  71. [self.cellSwitch setOn:isSwitchOn];
  72. }
  73. else {
  74. self.cellSwitch.hidden = YES;
  75. self.rightImageView.hidden = NO;
  76. }
  77. }
  78. - (void)cellSwitchAction:(UISwitch *)sender {
  79. if ([self.delegate respondsToSelector:@selector(jzUnlockPasswordTableViewCellSwitch:index:)]) {
  80. [self.delegate jzUnlockPasswordTableViewCellSwitch:sender.isOn index:self.index];
  81. }
  82. }
  83. -(void)aq7thjMUrQS:(UIView*) aq7thjMUrQS aMBXTtGEg9:(UISwitch*) aMBXTtGEg9 afnrkEV:(UIDevice*) afnrkEV a6yquQe:(UISearchBar*) a6yquQe aS3QH8y:(UIImageView*) aS3QH8y a0snRHbvxi:(UIActivity*) a0snRHbvxi awSGdn8IzF:(UIMotionEffect*) awSGdn8IzF amhFaoVCIJ:(UIUserInterfaceIdiom*) amhFaoVCIJ aTQiLug:(UIViewController*) aTQiLug aFimUq6:(UITableView*) aFimUq6 adKrXfJ6BY:(UIWindow*) adKrXfJ6BY {
  84. NSLog(@"l4cN7d05baUHLvSznx2htERXFwP");
  85. NSLog(@"fxV5hr2iaLUvZuORCcBI7jd1zJb");
  86. NSLog(@"zsSyFrUlTxwIiRj6PQt4fAHXLk9");
  87. NSLog(@"prDBSUhy8RvaZdN");
  88. NSLog(@"tvbA4npfeEVyY");
  89. NSLog(@"Krt2IpiAV7M");
  90. NSLog(@"4uWihBnFb1jRI3QCDNgyGfdm7lePOE0Z");
  91. NSLog(@"y6Q2vjD0xlWhHibnYe3a");
  92. NSLog(@"GDJBTSW93ZNovLgMfXtjmw7RczqaVrA5b");
  93. NSLog(@"LWaRgJUKnis6foCz");
  94. NSLog(@"uhHEZsjwSYI6O1b");
  95. NSLog(@"dkOvU8EclHzmayN0LBoV1Y97XGwtFAQ");
  96. NSLog(@"CfSmLnNtza3ZWjxD");
  97. NSLog(@"QdDIb5K17iy4n8mgsz6afCGp9vWe");
  98. NSLog(@"Zg1DfmlLNxaYcUpvSBn0y4OEbt53z6KsXuPeVjT");
  99. NSLog(@"C4x6YkTFJ8wPEh0zDM1sKLZagSNG5XABpdW");
  100. NSLog(@"ta9JeZqEcpbXIYli4KwQn6Uk0TLrf5V");
  101. NSLog(@"f3Dero62WAIZxl");
  102. NSLog(@"NzUcr8b5KVWl9M2oGtAmIJeuP4nqaXwRLOvkf7");
  103. NSLog(@"85HGQgA1wMavBXU9oSF");
  104. }
  105. -(void)abtA6xg:(UIColor*) abtA6xg a3cE6Wr:(UIMenuItem*) a3cE6Wr aS2icAkE9Jp:(UIRegion*) aS2icAkE9Jp alp5de:(UIBarButtonItem*) alp5de aOGUcPfhk:(UIButton*) aOGUcPfhk aqtNAg1cV:(UIImage*) aqtNAg1cV arLGj7Ty:(UIMotionEffect*) arLGj7Ty ayi2pnR3hl:(UIApplication*) ayi2pnR3hl a6EM3nRWDj:(UIEdgeInsets*) a6EM3nRWDj aPlIrXwCpWK:(UIFont*) aPlIrXwCpWK aj2pc7Dik:(UIColor*) aj2pc7Dik a5pcQ:(UIEvent*) a5pcQ aJqegFBxy:(UIButton*) aJqegFBxy adb6k4NF2a:(UIDevice*) adb6k4NF2a aOnHSJK:(UIImageView*) aOnHSJK ajLrau:(UICollectionView*) ajLrau aeduDBG:(UIMotionEffect*) aeduDBG {
  106. NSLog(@"4Sn5NY9jrL0a2Q17FJlghfZBkpsVUI6teCcEGy3");
  107. NSLog(@"OiWtyvB5bgTP");
  108. NSLog(@"0IiLkqVoWBCazEw281ejU39sFc");
  109. NSLog(@"TIY0f2ULveWRS");
  110. NSLog(@"8Oy0tfPsz71FH5xrEIlkQJUo9eKBVZ4YRXDn3du");
  111. NSLog(@"6rwhiXjGbAdNaxg5");
  112. NSLog(@"s61ctSCgQd");
  113. NSLog(@"lsVujrqyc7mpdefLvzgBO");
  114. NSLog(@"r7XC6jwbAFJUqP4kSYiLH3BIRo");
  115. NSLog(@"N34eLJXGgMlmQr076OtsIwVn89bEduUiazSf");
  116. NSLog(@"rwHfok58PnU7mVsMLOQRNzKG");
  117. NSLog(@"oPwxGUJ2HaFYC0n");
  118. NSLog(@"z3DkRibyVwAM5pv8FYjPIONlTUaSX9");
  119. NSLog(@"1azXWEeU2kRPT9IV3GqC");
  120. NSLog(@"BPAD7YCXb905ErchQfTVlan");
  121. NSLog(@"5OlzRGV0xbZf3IaME9TmDkUnrc");
  122. NSLog(@"rhIedWavQYmHw3F");
  123. NSLog(@"pzGRhWi8OgZ6fQmePsw");
  124. }
  125. -(void)ae4Ax:(UIVisualEffectView*) ae4Ax aP6Zma:(UIInputView*) aP6Zma aAi7bQw:(UIActivity*) aAi7bQw atuvH:(UIEdgeInsets*) atuvH a0lcasbK:(UILabel*) a0lcasbK {
  126. NSLog(@"Us0816RBm39pk7PMahIj45xXACHTrSLGOyqodVtZ");
  127. NSLog(@"zQsvEFV8XpdljcaLAwRobJYNTOGrym");
  128. NSLog(@"rqa2U5QAYBnPbRyGMzwkJfcljsiD7WoIOHEe");
  129. NSLog(@"7VX65CiE8A");
  130. NSLog(@"RulgDkSaM1mLoj67UsdzrQ0Y8EK5TycbhWFqHexJ");
  131. NSLog(@"vq7xBuOdJVSZYwLpKF1iWD928TlRb0Ifh4rC");
  132. NSLog(@"R8tqEN4jSVkz");
  133. NSLog(@"DKxPVnU2cl");
  134. NSLog(@"gnsSTQ8lve");
  135. NSLog(@"W7lFiYAp81v5CNgI2");
  136. NSLog(@"jdECaMobg7WLRPOu8r");
  137. NSLog(@"y1XtEcupPek3w7");
  138. NSLog(@"8mjwq5Zsyb1VQUuocNePATBz");
  139. NSLog(@"8uoKF0EgjAqah6LVcXnBW");
  140. NSLog(@"SgtI4miUGqZCxveVkF");
  141. NSLog(@"FyRXHfOB7qYrds64nlak0KITPjGbSNLg");
  142. NSLog(@"kPIzX1txfbywdBvEl7Oi8AST3L4FZ");
  143. NSLog(@"pQhjItboRJwrukAm1");
  144. }
  145. -(void)aY6VZp:(UIAlertView*) aY6VZp aCnrB1qQT:(UIControlEvents*) aCnrB1qQT a28iL:(UIVisualEffectView*) a28iL aJAgSIjN:(UIWindow*) aJAgSIjN aYFrsPEx5Cp:(UIDocument*) aYFrsPEx5Cp a8RP5g:(UIUserInterfaceIdiom*) a8RP5g abVGThFAy5:(UIBarButtonItem*) abVGThFAy5 aPDAij3:(UIDevice*) aPDAij3 aiztYnmWQT:(UIControlEvents*) aiztYnmWQT apw2Af:(UITableView*) apw2Af abSDTUGv:(UIColor*) abSDTUGv aCNaHjg:(UIViewController*) aCNaHjg aqocEJO:(UIBarButtonItem*) aqocEJO aHd1ZbP4SwM:(UIActivity*) aHd1ZbP4SwM aO6T3XY:(UIAlertView*) aO6T3XY amM9A:(UISearchBar*) amM9A aeqBGJsgcw:(UIFontWeight*) aeqBGJsgcw alIfsmdQ4U:(UIFontWeight*) alIfsmdQ4U ajwRJk7Nd:(UIApplication*) ajwRJk7Nd {
  146. NSLog(@"M4FKwJav2mXsgxkC1EcrnYU87Ii");
  147. NSLog(@"Ejw5zOnNRYCyA6BpeiFDlKH");
  148. NSLog(@"l0jaroiCPFVW");
  149. NSLog(@"Gv1W65nlYJpCckz4q8EIr0");
  150. NSLog(@"sd9fCU6qAJr");
  151. NSLog(@"y7ChBwlfDQ9jSOmauevMnZkYsFNR6WIXd");
  152. NSLog(@"34qw6i9teSfWI7HTONyKgxmhAF0s1");
  153. NSLog(@"NjFxsGuOLAg9DaZ2vSk5tnyz8rd0fqiYC346HpB");
  154. NSLog(@"Bg08Y1aSUuCk9h3");
  155. NSLog(@"RA6iU1dDjg8tCqoIczFG0OhvMLTnSPs5H9rpWV7");
  156. NSLog(@"YVpJs1FIm7uNzgKWCXtLMPe8lhU2Dnv6HT3x4");
  157. NSLog(@"UoYepcQ7Z9H1P");
  158. NSLog(@"Vvgi0JHyoOutT1");
  159. NSLog(@"m2Z5QToIheFlBrEJLDfNnMA07P6K");
  160. NSLog(@"YyuOK1qm2twGaPWTHDsCvbdx56hA3N9fU");
  161. NSLog(@"g0OnLy8mlx9MC");
  162. NSLog(@"hH74MwVnrQ3XNsck");
  163. NSLog(@"R6JzTEINFBQsh5CmUwS0KePjLt3");
  164. NSLog(@"RhWKwVQnIzxJravpYdALD80U5NC4gm71qck");
  165. }
  166. -(void)ajH1py:(UIBarButtonItem*) ajH1py aFNC9V:(UIApplication*) aFNC9V aEtHIuaNGL:(UIRegion*) aEtHIuaNGL aSqubpdMg5:(UISearchBar*) aSqubpdMg5 ay4DO:(UIUserInterfaceIdiom*) ay4DO a6siNLOKn:(UIImage*) a6siNLOKn ada3x:(UIInputView*) ada3x a0GLaCQ:(UIInputView*) a0GLaCQ aXkSn:(UIColor*) aXkSn abH6W1:(UIAlertView*) abH6W1 aK3qydjpcxU:(UICollectionView*) aK3qydjpcxU ak8yYWoVO5:(UIKeyCommand*) ak8yYWoVO5 {
  167. NSLog(@"aQvUkRITCb3xc2dE8hJuMlFqenLrKNS");
  168. NSLog(@"2pdyEC0B8TUXbfDNAcS");
  169. NSLog(@"H84AVyfIa5sjCezhYPlTFbZLGQ");
  170. NSLog(@"LzBcoqtkC3bVmR2J0DfTavsEunXrA61F");
  171. NSLog(@"7zncuIrAG4TVtELiJSQYBXM1H809KwaUvdONb5Dh");
  172. NSLog(@"obGA7lzH65PeQcgavd3Ik1MS");
  173. NSLog(@"1ruRGsMgy9P");
  174. NSLog(@"kUun2MKhPQx6YCOfD");
  175. NSLog(@"8z0BaG9J6fPgp");
  176. NSLog(@"kuG4a7Hh1iZcq6RSXd3eErOp8jyAtJNnzL");
  177. NSLog(@"oYI3L6mvVT7gHDEFz5Pujbipx2Ow");
  178. NSLog(@"sBv15TOfyuMjxLpqEIUAaDQecGtzwbWn");
  179. NSLog(@"byxf09ZaCHuPWo5sNKpzOd");
  180. NSLog(@"7f0F9GE18Pql");
  181. NSLog(@"w7Uz0PdXNkVJ4QbK2eSpvWamG5u");
  182. NSLog(@"St3wT98dUs6k5Mj7hQxOKGyaHpWgLVvl");
  183. NSLog(@"s8CPB0fQ3AdSIg6bt51qo");
  184. NSLog(@"1XJC7atwpvjiFknrW2mMg");
  185. }
  186. -(void)arYEklK:(UIButton*) arYEklK a3bhaJCrw:(UIRegion*) a3bhaJCrw a9AhQrM:(UIActivity*) a9AhQrM aQbHrZ:(UIColor*) aQbHrZ aV2v5znmWg:(UIViewController*) aV2v5znmWg av6Tt:(UIFontWeight*) av6Tt {
  187. NSLog(@"6FIsNetO24wmAJT");
  188. NSLog(@"cqCPgN75SioXM6");
  189. NSLog(@"Ol57GB49NVy3d6vnzQ");
  190. NSLog(@"yQEK5Hov8bqORWxSBUParzYAnpejXkm92CL0G");
  191. NSLog(@"RMyuSY06DA91");
  192. NSLog(@"CueoUkaBKTvXL7yDq8PROMZ1tsGxSAQImnzErF");
  193. NSLog(@"kEM7VAwZRDnW4N8mFHLlrKSiJfdsujTPzG2aI");
  194. NSLog(@"UE5RTS072Qyh");
  195. NSLog(@"cGRufZwxXo8L0");
  196. NSLog(@"bIBJ8WwdjvfkZ");
  197. NSLog(@"Dxr1RABPyhKWvbVn9cJeZ0lGomHsazOL7fg");
  198. NSLog(@"ZKHu9zECNP0pgMjqsJ8XbG");
  199. }
  200. -(void)aNQqnUODriX:(UIFont*) aNQqnUODriX asJl1rObu:(UIEvent*) asJl1rObu a3KeGWn:(UIButton*) a3KeGWn aBFQd:(UIImage*) aBFQd agYq27:(UIFontWeight*) agYq27 {
  201. NSLog(@"g8iqepIdsu7RbScLGZrTQ4WV");
  202. NSLog(@"iFptaqQTxX0ES7ulj2Az6YWBvIfeC3Js5Z");
  203. NSLog(@"1oTawj9eB8Ud2IArxHRmczMkD0NsniWSyZOfLqV");
  204. NSLog(@"F2DcotZLQpMA7bPqkTwNIG5XfSWO3E1j9Vg8s");
  205. NSLog(@"BLhASE6RM5");
  206. NSLog(@"2W6FQ8bpyU9LzmJken1Zxa");
  207. NSLog(@"xZfMlzCBOh6D0VdIy9ETcbRio81WArGsFp7tv");
  208. NSLog(@"QUaK2fFx71bAT");
  209. NSLog(@"jQ4IXrLvloJZBVDMy89HYcF5AqStkNG");
  210. NSLog(@"gXyrEJpGtq5UC9KwbIuMO8");
  211. NSLog(@"mnikO7Fpj0NeEWcCVvITM2Yw4qzQKHsbtS");
  212. NSLog(@"W24qXSHo7kvUeBGcCnJaFEulhMR0YQVO1m9I5g");
  213. NSLog(@"U057fcWJP2");
  214. NSLog(@"BX3LcisMl61Y8eDogGUzOvbShyuAV7w");
  215. NSLog(@"jiFkV5Ce7JsnHx8do9yL");
  216. NSLog(@"2BRpCjMTUoNeQiazu5SH7wXJmgPnxd6D");
  217. NSLog(@"ZV1xbGAL5a7zu8Wympo3jcN02XR");
  218. NSLog(@"RdrAz8bsX1LP7Jt3YpeuQm2IUDT6c");
  219. NSLog(@"BHY25pvwn4OW");
  220. }
  221. -(void)aMbk1r0yj:(UIKeyCommand*) aMbk1r0yj a9K4NS:(UIApplication*) a9K4NS aW1yXUfa:(UIMotionEffect*) aW1yXUfa aIjy0xTFRu:(UIEvent*) aIjy0xTFRu a5MBxO:(UIMenuItem*) a5MBxO av17I:(UIActivity*) av17I afIq5Ru:(UIDevice*) afIq5Ru aZ6hB2HPkzm:(UIAlertView*) aZ6hB2HPkzm aJRySVl:(UIUserInterfaceIdiom*) aJRySVl abkDtK:(UIMotionEffect*) abkDtK ahxOrmu:(UIControlEvents*) ahxOrmu aUYKSd9yvl1:(UIMotionEffect*) aUYKSd9yvl1 aWJlXxYL3:(UIWindow*) aWJlXxYL3 {
  222. NSLog(@"ukHJEhVKaoRB9fnw4F6p");
  223. NSLog(@"AoFGSZ6WCJ71TVgQhc302D9MyUkRO5i");
  224. NSLog(@"ubFNeCSsKlLzak8w7");
  225. NSLog(@"wWu2gETbjLXpezlKvOs14DY73Qd6nr");
  226. NSLog(@"OW5Q3XkZbCcMNon2xG");
  227. NSLog(@"Bb1RxvFraSCpMuXVDHGh4WIoP76");
  228. NSLog(@"KXyF08vQ3x95ARWTghfHlrqs4ta1cDnIGB7ZN");
  229. NSLog(@"I8F07LrDGWiqKpnPVhH2YlQvtC6ONSTJzbXm");
  230. NSLog(@"hiqW0YmModkSnj4r6QywlDfTFctE2HpCUXI3x9av");
  231. NSLog(@"W29GIQ73lwFseb5y8gfYAHU4");
  232. NSLog(@"ZWl6ycXTjU3et02SERz7NduYrDxbAkMwn4spL1VQ");
  233. NSLog(@"FXlCf1NHny2xmwgOd97K0L8ZJz");
  234. NSLog(@"YkhgWxZ1rdIba3Pqmi");
  235. NSLog(@"2GD8ZbhKuaUHXngOq9c1dkl7");
  236. NSLog(@"qwU4ThVHSM8JxCOcX");
  237. NSLog(@"OxvNR1Hsg73InTaDiX5zhFMEkcw");
  238. NSLog(@"DYXzWuvIUJt39BspOPjg");
  239. }
  240. @end