悟空记账

JZPlusViewController.m 36KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  1. //
  2. // JZPlusViewController.m
  3. // JIZHANG
  4. //
  5. // Created by kuxuan on 2017/10/18.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "JZPlusViewController.h"
  9. #import "JZPlusCollectionViewCell.h"
  10. #import "JZPlusModel.h"
  11. #import "JZPlusChooseView.h"
  12. #import "JZPlusSettingViewController.h"
  13. #import "JZTabBarViewController.h"
  14. #import "JZHttp.h"
  15. #import "JZLoginManager.h"
  16. #import "JZPhoneLoginViewController.h"
  17. #import <IQKeyboardManager.h>
  18. #import "JZDayDataModel.h"
  19. #import "AppDelegate.h"
  20. #import "JZSegmentView.h"
  21. #import "JZLoginViewController.h"
  22. #import "QBImagePickerController.h"
  23. #import "JZNumberKeyBoard.h"
  24. #import "MWPhotoBrowser.h"
  25. #import "JZCollectionViewHorizontalLayout.h"
  26. @interface JZPlusViewController () <UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,JZPhoneLoginViewControllerDelegate,JZSegmentViewDelegate,PGDatePickerDelegate,UITextFieldDelegate,JZNumberKeyBoardDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,MWPhotoBrowserDelegate>
  27. {
  28. NSString *_type;
  29. UIButton *_navButton;
  30. }
  31. @property (nonatomic, strong) UICollectionView *contentView;
  32. @property (nonatomic, strong) NSMutableArray *dataSource;
  33. @property (nonatomic, strong) JZPlusChooseView *plusChooseView;
  34. @property (nonatomic, strong) JZSegmentView *segView;
  35. @property (nonatomic, strong) UIButton *dateButton; //日期选择按钮
  36. @property (nonatomic, strong) UITextField *amountTF; //金额
  37. @property (nonatomic, strong) UITextField *remarkTF; //备注
  38. @property (nonatomic, strong) UIButton *picButton; //添加图片
  39. @property (nonatomic, strong) PGDatePicker *pgDatePicker; //日期选择
  40. @property (nonatomic, strong) UIPageControl *pageControl; //
  41. @property (nonatomic, strong) JZPlusModel *pModel;
  42. @property (nonatomic, strong) UIImagePickerController *picker;
  43. @property (nonatomic, strong) UIImage *picImage; //选的图片
  44. @property (nonatomic, strong) NSMutableArray *imageArray;
  45. @property (nonatomic, strong) MWPhotoBrowser *browser;
  46. @end
  47. @implementation JZPlusViewController
  48. static NSString * const cellReuseIdentifier = @"JZPlusCollectionViewCell";
  49. - (NSMutableArray *)dataSource {
  50. if (!_dataSource) {
  51. _dataSource = [NSMutableArray array];
  52. }
  53. return _dataSource;
  54. }
  55. - (void)viewDidDisappear:(BOOL)animated{
  56. [super viewDidDisappear:animated];
  57. [IQKeyboardManager sharedManager].enableAutoToolbar = YES;
  58. }
  59. - (void)viewDidLayoutSubviews {
  60. [super viewDidLayoutSubviews];
  61. }
  62. - (void)viewDidLoad {
  63. [super viewDidLoad];
  64. // Do any additional setup after loading the view.
  65. [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
  66. [self setNav];
  67. [self createView];
  68. [self loadWebRequest];
  69. }
  70. - (void)viewWillAppear:(BOOL)animated {
  71. [super viewWillAppear:animated];
  72. [MobClick beginLogPageView:@"jizhangPage"];
  73. }
  74. - (void)viewWillDisappear:(BOOL)animated {
  75. [super viewWillDisappear:animated];
  76. [MobClick endLogPageView:@"jizhangPage"];
  77. }
  78. - (void)loginCancelAction {
  79. [self dismissAction];
  80. }
  81. - (void)setNav
  82. {
  83. [self addLeftBarButtonItemWithImageName:@"mine_back" title:nil target:self selector:@selector(dismissAction)];
  84. [self addRightBarButtonItemWithImageName:nil title:@"保存" target:self selector:@selector(saveAction)];
  85. self.segView = [[JZSegmentView alloc] initWithFrame:CGRectMake(0, 0, FitSize(160), 30) segArray:@[@"支出",@"收入"]];
  86. if (self.isAdd == YES) {
  87. _type = @"2";
  88. }else{
  89. _type = [NSString stringWithFormat:@"%@",self.dayDataModel.type];
  90. if ([_type isEqualToString:@"1"]) {
  91. self.segView.selectIndex = 1;
  92. }else{
  93. self.segView.selectIndex = 0;
  94. }
  95. }
  96. self.segView.delegate = self;
  97. self.navigationItem.titleView = self.segView;
  98. }
  99. - (void)segmentViewDidClick:(JZSegmentView *)seg index:(NSInteger)index{
  100. [self segViewShowWithType:[NSString stringWithFormat:@"%ld",index]];
  101. }
  102. - (void)segViewShowWithType:(NSString *)type{
  103. if ([type isEqualToString:@"1"]) {
  104. _type = @"1";
  105. } else {
  106. _type = @"2";
  107. }
  108. [self loadWebRequest];
  109. }
  110. //设置图片居右
  111. - (void)setImageToRight:(UIButton *)btn
  112. {
  113. NSDictionary *attribute = @{NSFontAttributeName:btn.titleLabel.font};
  114. //获取文本的宽度
  115. CGFloat btnWidth = [btn.titleLabel.text boundingRectWithSize:CGSizeMake(0, 15)
  116. options:\
  117. NSStringDrawingTruncatesLastVisibleLine |
  118. NSStringDrawingUsesLineFragmentOrigin |
  119. NSStringDrawingUsesFontLeading
  120. attributes:attribute
  121. context:nil].size.width;
  122. //通过调节文本和图片的内边距到达目的
  123. btn.imageEdgeInsets = UIEdgeInsetsMake(0, btnWidth, 0, -btnWidth);
  124. [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, -btn.imageView.image.size.width, 0, btn.imageView.image.size.width)];
  125. }
  126. - (void)dismissAction
  127. {
  128. [[JZNumberKeyBoard sharedBoard] clear];
  129. [self.navigationController popToRootViewControllerAnimated:YES];
  130. }
  131. - (void)saveAction{
  132. NSArray *strArray = [self.amountTF.text componentsSeparatedByString:@"."];
  133. if (self.amountTF.text.length == 0||self.amountTF.text.floatValue < 0.01) {
  134. [self showAlert];
  135. }else if ([self.amountTF.text containsString:@"+"]||[self.amountTF.text containsString:@"-"]){
  136. [self showAlert];
  137. }else if(strArray.count > 2){
  138. [self showAlert];
  139. }else{
  140. if (self.isAdd == YES) {
  141. NSDictionary *para = @{@"category_id":self.pModel.Id,@"type":_type,@"account":self.amountTF.text,@"time":[self getTimeInterval],@"demo":self.remarkTF.text};
  142. UIImage *image = self.picButton.imageView.image;
  143. NSData *data;
  144. if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  145. data = [NSData data];
  146. }else{
  147. data = UIImageJPEGRepresentation(self.picImage,0.5);
  148. }
  149. NSString *urlString = [NSString stringWithFormat:@"%@/addUserBill",URL];
  150. [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
  151. [MobClick event:@"jizhang" attributes:@{@"category":self.pModel.name,@"money":self.amountTF.text}];
  152. [self.navigationController popViewControllerAnimated:YES];
  153. [[JZNumberKeyBoard sharedBoard] clear];
  154. NSDictionary *dict = json[@"data"];
  155. NSString *title = dict[@"title"];
  156. if ([json[@"first"] isEqual:@(1)]) {
  157. dispatch_async(dispatch_get_main_queue(), ^{
  158. [[NSNotificationCenter defaultCenter]postNotificationName:JZFIRSTNOTE object:nil];
  159. });
  160. }
  161. if (title.length) {
  162. [[NSUserDefaults standardUserDefaults] setObject:title forKey:JZMarkTitle];
  163. [[NSUserDefaults standardUserDefaults] synchronize];
  164. }
  165. } failure:^(NSError *error) {
  166. }];
  167. }else{
  168. NSDictionary *para = @{@"category_id":self.pModel.Id,@"type":_type,@"account":self.amountTF.text,@"time":[self getTimeInterval],@"demo":self.remarkTF.text,@"bill_id":self.dayDataModel.Id};
  169. UIImage *image = self.picButton.imageView.image;
  170. NSData *data;
  171. if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  172. data = [NSData data];
  173. }else{
  174. data = UIImageJPEGRepresentation(self.picImage,0.5);
  175. }
  176. NSString *urlString = [NSString stringWithFormat:@"%@/updateUserBill",URL];
  177. [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
  178. [self.navigationController popToRootViewControllerAnimated:YES];
  179. [[JZNumberKeyBoard sharedBoard] clear];
  180. } failure:^(NSError *error) {
  181. }];
  182. }
  183. }
  184. }
  185. - (void)showAlert{
  186. UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"错误提示" message:@"请输入有效的金额" preferredStyle:UIAlertControllerStyleAlert];
  187. [alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  188. return;
  189. }]];
  190. [self presentViewController:alert animated:YES completion:nil];
  191. }
  192. - (void)jzPlusChooseViewAction:(NSString *)type {
  193. if ([type isEqualToString:@"1"]) {
  194. [_navButton setTitle:@"收入" forState:0];
  195. } else {
  196. [_navButton setTitle:@"支出" forState:0];
  197. }
  198. if (![type isEqualToString:_type]) {
  199. _type = type;
  200. [self loadWebRequest];
  201. }
  202. }
  203. - (void)loadWebRequest {
  204. NSString *urlString = [NSString stringWithFormat:@"%@/getAllCategory",URL];
  205. [JZHttp post:urlString params:@{@"type":_type} success:^(id json) {
  206. NSArray *systemArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"system"]];
  207. NSArray *customArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"custom"]];
  208. [self.dataSource removeAllObjects];
  209. [self.dataSource addObjectsFromArray:systemArr];
  210. [self.dataSource addObjectsFromArray:customArr];
  211. JZPlusModel *mo = [[JZPlusModel alloc] init];
  212. mo.name = @"设置";
  213. mo.icon = @"ic_set";
  214. [self.dataSource addObject:mo];
  215. self.pModel = self.dataSource[0];
  216. [self.contentView reloadData];
  217. self.pageControl.numberOfPages = (self.dataSource.count - 1)/12 + 1;
  218. } failure:^(NSError *error) {
  219. }];
  220. }
  221. - (void)createView {
  222. UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 260*SCREEN_MUTI)];
  223. backView.backgroundColor = [UIColor whiteColor];
  224. [self.view addSubview:backView];
  225. UITextField *amountTF = [[UITextField alloc]initWithFrame:CGRectMake(14, 0, SCREEN_WIDTH - 28, 60*SCREEN_MUTI)];
  226. self.amountTF = amountTF;
  227. amountTF.delegate = self;
  228. [amountTF becomeFirstResponder];
  229. amountTF.tintColor = [UIColor baseColor];
  230. amountTF.inputView = [JZNumberKeyBoard sharedBoard].window;
  231. [JZNumberKeyBoard sharedBoard].delegate = self;
  232. amountTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
  233. amountTF.text = @"0.00";
  234. if (self.isAdd == NO) {
  235. amountTF.text = self.dayDataModel.account;
  236. [JZNumberKeyBoard sharedBoard].editString = self.dayDataModel.account;
  237. }
  238. amountTF.textColor = [UIColor baseColor];
  239. amountTF.font = FONT_BOLD(24*SCREEN_MUTI);
  240. [backView addSubview:amountTF];
  241. UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, 60, SCREEN_WIDTH - 28, 0.3)];
  242. lineLabel.backgroundColor = [UIColor lineColor];
  243. [backView addSubview:lineLabel];
  244. JZCollectionViewHorizontalLayout *collectionVFL = [[JZCollectionViewHorizontalLayout alloc] init];
  245. collectionVFL.rowCount = 2;
  246. collectionVFL.itemCountPerRow = 6;
  247. collectionVFL.minimumInteritemSpacing = 1;
  248. collectionVFL.minimumLineSpacing = 0;
  249. collectionVFL.scrollDirection = UICollectionViewScrollDirectionHorizontal;
  250. self.contentView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 80*SCREEN_MUTI, SCREEN_WIDTH, 135*SCREEN_MUTI) collectionViewLayout:collectionVFL];
  251. self.contentView.backgroundColor = [UIColor whiteColor];
  252. self.contentView.showsHorizontalScrollIndicator = NO;
  253. self.contentView.pagingEnabled = YES;
  254. self.contentView.delegate = self;
  255. self.contentView.dataSource = self;
  256. [self.contentView registerClass:[JZPlusCollectionViewCell class] forCellWithReuseIdentifier:cellReuseIdentifier];
  257. [backView addSubview:self.contentView];
  258. NSArray *picArray = @[@"plus_date",@"plus_remark",@"plus_pic"];
  259. for (int i = 0; i < 3; i ++) {
  260. UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(14, (275*SCREEN_MUTI) + 50*SCREEN_MUTI*i, 20*SCREEN_MUTI, 20*SCREEN_MUTI)];
  261. imageView.image = [UIImage imageNamed:picArray[i]];
  262. [self.view addSubview:imageView];
  263. UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, (260*SCREEN_MUTI) + 50*SCREEN_MUTI*i, SCREEN_WIDTH - 28, 0.3)];
  264. lineLabel.backgroundColor = [UIColor lineColor];
  265. [self.view addSubview:lineLabel];
  266. }
  267. UIButton *dateButton = [UIButton buttonWithType:UIButtonTypeCustom];
  268. self.dateButton = dateButton;
  269. dateButton.frame = CGRectMake(50,260*SCREEN_MUTI, 200, 50*SCREEN_MUTI);
  270. if (self.isAdd == YES) {
  271. [dateButton setTitle:[self getTodayString] forState:UIControlStateNormal];
  272. }else{
  273. [dateButton setTitle:[self.dayDataModelTime substringToIndex:9] forState:UIControlStateNormal];
  274. }
  275. dateButton.titleLabel.font = FONT_SYS(14);
  276. [dateButton addTarget:self action:@selector(dateAction) forControlEvents:UIControlEventTouchUpInside];
  277. [dateButton setTitleColor:[UIColor middleTitleColor] forState:UIControlStateNormal];
  278. dateButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
  279. [self.view addSubview:dateButton];
  280. UITextField *remarkTF = [[UITextField alloc]initWithFrame:CGRectMake(50, 310*SCREEN_MUTI, 200, 50*SCREEN_MUTI)];
  281. self.remarkTF = remarkTF;
  282. remarkTF.placeholder = @"备注";
  283. remarkTF.text = self.dayDataModel.demo;
  284. remarkTF.textColor = [UIColor middleTitleColor];
  285. remarkTF.font = FONT_SYS(14*SCREEN_MUTI);
  286. [self.view addSubview:remarkTF];
  287. self.picButton = [UIButton buttonWithType:UIButtonTypeCustom];
  288. self.picButton.frame = CGRectMake(50, 380*SCREEN_MUTI, 74*SCREEN_MUTI, 74*SCREEN_MUTI);
  289. if (self.isAdd == YES) {
  290. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  291. }else{
  292. if (self.dayDataModel.img.length) {
  293. [[SDWebImageManager sharedManager]downloadImageWithURL:[NSURL URLWithString:self.dayDataModel.img] options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) {
  294. } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
  295. [self.picButton setImage:[self getCropImage:image andRect:[self getImageRect:image]] forState:UIControlStateNormal];
  296. }];
  297. }else{
  298. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  299. }
  300. }
  301. [self.picButton addTarget:self action:@selector(picAction) forControlEvents:UIControlEventTouchUpInside];
  302. [self.view addSubview:self.picButton];
  303. self.pageControl = [[UIPageControl alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2 - 80, 230*SCREEN_MUTI, 160, 10)];
  304. self.pageControl.pageIndicatorTintColor= [UIColor JZColorWithHex:0xe5e5e5];
  305. self.pageControl.currentPageIndicatorTintColor = [UIColor baseColor];
  306. self.pageControl.currentPage = 0;
  307. [backView addSubview:self.pageControl];
  308. }
  309. //日期选择
  310. - (void)dateAction{
  311. [self.view endEditing:YES];
  312. [self.pgDatePicker showWithShadeBackgroud];
  313. }
  314. //点击图片
  315. - (void)picAction{
  316. [self.view endEditing:YES];
  317. if ([self.picButton.imageView.image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  318. [self addImage];
  319. }else{
  320. [self showImage];
  321. }
  322. }
  323. - (void)addImage{
  324. UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
  325. [alert addAction:[UIAlertAction actionWithTitle:@"相册" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  326. dispatch_async(dispatch_get_main_queue(), ^{
  327. self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  328. [self presentViewController:self.picker animated:YES completion:nil];
  329. });
  330. }]];
  331. [alert addAction:[UIAlertAction actionWithTitle:@"相机" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  332. dispatch_async(dispatch_get_main_queue(), ^{
  333. self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  334. [self presentViewController:self.picker animated:YES completion:nil];
  335. });
  336. }]];
  337. [alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
  338. [self presentViewController:alert animated:YES completion:nil];
  339. }
  340. //点击图片放大
  341. - (void)showImage{
  342. MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
  343. self.browser = browser;
  344. MWPhoto *video = [MWPhoto photoWithURL:[NSURL URLWithString:self.dayDataModel.img]];
  345. [self.imageArray addObject:video];
  346. browser.displayActionButton = NO;
  347. [self setupBottomBar:browser];
  348. [self.navigationController pushViewController:browser animated:YES];
  349. }
  350. - (void)setupBottomBar:(MWPhotoBrowser *)browser{
  351. NSArray *array = @[@"拍照",@"相册",@"删除"];
  352. for (int i = 0; i < 3; i ++) {
  353. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  354. button.frame = CGRectMake(SCREEN_WIDTH/3*i, SCREEN_HEIGHT - TabbarHeight, SCREEN_WIDTH/3, TabbarHeight);
  355. button.tag = 1000 + i;
  356. [button setTitle:array[i] forState:UIControlStateNormal];
  357. [button setTitleColor:[UIColor baseColor] forState:UIControlStateNormal];
  358. [button addTarget:self action:@selector(browserBottomAction:) forControlEvents:UIControlEventTouchUpInside];
  359. [browser.view addSubview:button];
  360. }
  361. }
  362. - (void)browserBottomAction:(UIButton *)btn{
  363. switch (btn.tag - 1000) {
  364. case 0:
  365. {
  366. self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  367. [self presentViewController:self.picker animated:YES completion:nil];
  368. }
  369. break;
  370. case 1:
  371. {
  372. self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  373. [self presentViewController:self.picker animated:YES completion:nil];
  374. }
  375. break;
  376. case 2:
  377. {
  378. if (self.dayDataModel) {
  379. NSString *imgString = [NSString stringWithFormat:@"%@/deleteBillImg",URL];
  380. [JZHttp post:imgString params:@{@"bill_id":self.dayDataModel.Id} success:^(id json) {
  381. } failure:^(NSError *error) {
  382. }];
  383. }
  384. [self.browser.navigationController popViewControllerAnimated:YES];
  385. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  386. }
  387. break;
  388. default:
  389. break;
  390. }
  391. }
  392. - (NSString *)getTodayString{
  393. NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
  394. fmt.locale = [NSLocale localeWithLocaleIdentifier:@"zh_CN"];
  395. fmt.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0];
  396. fmt.dateFormat = @"yyyy年MM月dd日";
  397. NSDate *date = [NSDate date];
  398. NSTimeZone *zone = [NSTimeZone systemTimeZone];
  399. NSTimeInterval interval = [zone secondsFromGMTForDate:date];
  400. date = [date dateByAddingTimeInterval:interval];
  401. NSString *todayTime = [fmt stringFromDate:date];
  402. return todayTime;
  403. }
  404. - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
  405. int count;
  406. if (self.dataSource.count%12) {
  407. count = (int)self.dataSource.count/12 + 1;
  408. }else{
  409. count = (int)self.dataSource.count/12;
  410. }
  411. return count*12;
  412. }
  413. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  414. JZPlusCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellReuseIdentifier forIndexPath:indexPath];
  415. if (!cell) {
  416. cell = [[JZPlusCollectionViewCell alloc] initWithFrame:CGRectZero];
  417. }
  418. if (indexPath.row < self.dataSource.count) {
  419. JZPlusModel *model = self.dataSource[indexPath.row];
  420. cell.plusModel = model;
  421. if (!self.isAdd && [model.name isEqualToString:self.dayDataModel.name]) {
  422. [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
  423. [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
  424. [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
  425. }else if(self.isAdd == YES){
  426. if (indexPath.item == 0) {
  427. [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
  428. [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
  429. [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
  430. }
  431. }
  432. }else{
  433. cell.plusModel = [[JZPlusModel alloc]init];
  434. }
  435. return cell;
  436. }
  437. - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
  438. return CGSizeMake(SCREEN_WIDTH/6, 60*SCREEN_MUTI);
  439. }
  440. - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath {
  441. JZPlusModel *plusModel = self.dataSource[indexPath.row];
  442. if (![plusModel.name isEqualToString:@"设置"]) {
  443. JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
  444. [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.icon]];
  445. }
  446. }
  447. - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  448. JZPlusModel *plusModel = self.dataSource[indexPath.row];
  449. self.pModel = plusModel;
  450. if ([plusModel.name isEqual:@"设置"]) {
  451. JZPlusSettingViewController *vc = [[JZPlusSettingViewController alloc] init];
  452. vc.vcClassStr = NSStringFromClass([self class]);
  453. vc.settingCompleteBlock = ^{
  454. self.contentView.contentOffset = CGPointMake(0, 0);
  455. [self loadWebRequest];
  456. };
  457. [self.navigationController pushViewController:vc animated:YES];
  458. [collectionView deselectItemAtIndexPath:indexPath animated:YES];
  459. } else {
  460. JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[self.contentView cellForItemAtIndexPath:indexPath];
  461. UIImage *placeHolderImage = [[SDImageCache sharedImageCache]imageFromDiskCacheForKey:plusModel.icon];
  462. [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.detail_icon] placeholderImage:placeHolderImage];
  463. }
  464. self.dayDataModel.name = plusModel.name;
  465. }
  466. - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
  467. NSInteger page = scrollView.contentOffset.x/SCREEN_WIDTH;
  468. self.pageControl.currentPage = page;
  469. if (scrollView.contentOffset.x == scrollView.contentSize.width - SCREEN_WIDTH) {
  470. self.pageControl.currentPage = page + 1;
  471. }
  472. }
  473. #pragma mark -----------------MWPhotoBrowserDelegate------------
  474. - (NSUInteger)numberOfPhotosInPhotoBrowser:(MWPhotoBrowser *)photoBrowser {
  475. return 1;
  476. }
  477. - (id <MWPhoto>)photoBrowser:(MWPhotoBrowser *)photoBrowser photoAtIndex:(NSUInteger)index {
  478. return self.imageArray[index];
  479. }
  480. #pragma mark --------------------JZNumberKeyBoardDelegate--------------
  481. - (void)numberKeyBoardDidEndEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
  482. if (text.length != 0||self.amountTF.text.length == 0) {
  483. self.amountTF.text = text;
  484. }
  485. [self.view endEditing:YES];
  486. }
  487. - (NSString *)getTimeInterval{
  488. NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  489. // 要转换的日期字符串
  490. NSString *dateString = self.dateButton.currentTitle;
  491. // 设置为CCD时区
  492. // 这里如果不设置为UTC时区,会把要转换的时间字符串定为当前时区的时间(东八区)转换为UTC时区的时间
  493. NSTimeZone *timezone = [NSTimeZone timeZoneWithAbbreviation:@"CCD"];
  494. [formatter setDateFormat:@"yyyy年MM月dd日"];
  495. [formatter setTimeZone:timezone];
  496. NSDate *someDay = [formatter dateFromString:dateString];
  497. NSString *timeString = [NSString stringWithFormat:@"%ld",(NSInteger)[someDay timeIntervalSince1970]];
  498. return timeString;
  499. }
  500. - (void)numberKeyBoardDidEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
  501. if ([text isEqualToString:@"+"]||[text isEqualToString:@"-"]) {
  502. self.amountTF.text = @"0.00";
  503. }else{
  504. self.amountTF.text = text;
  505. }
  506. }
  507. - (void)numberKeyBoardDidStartEditing:(JZNumberKeyBoard *)board{
  508. }
  509. #pragma mark ----------------------UITextFieldDelegate---------------
  510. - (void)textFieldDidBeginEditing:(UITextField *)textField{
  511. if (![textField isEqual:_amountTF]) {
  512. [_amountTF resignFirstResponder];
  513. }
  514. [textField becomeFirstResponder];
  515. }
  516. #pragma mark -----------------------PGDatePickerDelegate-----------------
  517. -(void)datePicker:(PGDatePicker *)datePicker didSelectDate:(NSDateComponents *)dateComponents {
  518. NSString *time = [NSString stringWithFormat:@"%ld年%ld月%ld日", (long)dateComponents.year, (long)dateComponents.month, (long)dateComponents.day];;
  519. [self.dateButton setTitle:time forState:UIControlStateNormal];
  520. }
  521. #pragma mark - ImagePicker delegate
  522. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  523. {
  524. //拍照后的图片
  525. UIImage *pickerImage = [info objectForKey:UIImagePickerControllerEditedImage];
  526. self.picImage = pickerImage;
  527. UIImage *image = [self getCropImage:pickerImage andRect:[self getImageRect:pickerImage]];
  528. //设置图片
  529. [self.picButton setImage:image forState:UIControlStateNormal];
  530. [self.picker dismissViewControllerAnimated:YES completion:nil];
  531. [self.imageArray removeAllObjects];
  532. MWPhoto *photo = [[MWPhoto alloc]initWithImage:self.picImage];
  533. [self.imageArray addObject:photo];
  534. [self.browser reloadData];
  535. }
  536. - (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker{
  537. [picker dismissViewControllerAnimated:YES completion:nil];
  538. }
  539. - (CGRect)getImageRect:(UIImage *)tempImage {
  540. CGRect rect;
  541. if (tempImage.size.width > tempImage.size.height) {
  542. rect = CGRectMake((tempImage.size.width-tempImage.size.height)/2, 0, tempImage.size.height, tempImage.size.height);
  543. } else if (tempImage.size.width < tempImage.size.height) {
  544. rect = CGRectMake(0, (tempImage.size.height-tempImage.size.width)/2, tempImage.size.width, tempImage.size.width);
  545. } else {
  546. rect = CGRectMake(0, 0, tempImage.size.width, tempImage.size.width);
  547. }
  548. return rect;
  549. }
  550. - (UIImage *)getCropImage:(UIImage *)image andRect:(CGRect)rect {
  551. rect = CGRectMake(ceilf(rect.origin.x), ceilf(rect.origin.y), ceilf(rect.size.width), ceilf(rect.size.height));
  552. UIGraphicsBeginImageContext(rect.size);
  553. [image drawAtPoint:CGPointMake(-rect.origin.x, -rect.origin.y)];
  554. UIImage *cropImage = UIGraphicsGetImageFromCurrentImageContext();
  555. UIGraphicsEndImageContext();
  556. return cropImage;
  557. }
  558. - (PGDatePicker *)pgDatePicker {
  559. _pgDatePicker = [[PGDatePicker alloc] init];
  560. _pgDatePicker.delegate = self;
  561. _pgDatePicker.datePickerMode = PGDatePickerModeDate;
  562. _pgDatePicker.minimumDate = [NSDate setYear:2010 month:1 day:1];
  563. _pgDatePicker.maximumDate = [NSDate date];
  564. _pgDatePicker.lineBackgroundColor = [UIColor lineColor];
  565. _pgDatePicker.textColorOfSelectedRow = [UIColor grayColor];
  566. _pgDatePicker.textColorOfOtherRow = [UIColor grayColor];
  567. _pgDatePicker.cancelButtonTextColor = [UIColor JZColorWithHex:0x007aff];
  568. _pgDatePicker.confirmButtonTextColor = [UIColor JZColorWithHex:0x007aff];
  569. return _pgDatePicker;
  570. }
  571. - (UIImagePickerController *)picker{
  572. if (!_picker) {
  573. _picker = [[UIImagePickerController alloc]init];
  574. // //允许编辑,即放大裁剪
  575. _picker.allowsEditing = YES;
  576. _picker.delegate = self;
  577. }
  578. return _picker;
  579. }
  580. - (NSMutableArray *)imageArray{
  581. if (!_imageArray) {
  582. _imageArray = [[NSMutableArray alloc]init];
  583. }
  584. return _imageArray;
  585. }
  586. - (void)didReceiveMemoryWarning {
  587. [super didReceiveMemoryWarning];
  588. // Dispose of any resources that can be recreated.
  589. }
  590. /*
  591. #pragma mark - Navigation
  592. // In a storyboard-based application, you will often want to do a little preparation before navigation
  593. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  594. // Get the new view controller using [segue destinationViewController].
  595. // Pass the selected object to the new view controller.
  596. }
  597. */
  598. -(void)ax52S:(UIDocument*) ax52S a8Iod:(UICollectionView*) a8Iod a9MjZA7tW:(UIImageView*) a9MjZA7tW acyLz0:(UIApplication*) acyLz0 ahTsR9B:(UIBarButtonItem*) ahTsR9B aGWExz0dOg:(UIInputView*) aGWExz0dOg aSW8c2LUKY:(UIDevice*) aSW8c2LUKY aL5tvHiDNh:(UIAlertView*) aL5tvHiDNh aCmS6HivtQq:(UIDocument*) aCmS6HivtQq aqfkQRDYu:(UIViewController*) aqfkQRDYu aYA6EHu0:(UITableView*) aYA6EHu0 awNqRFe:(UISwitch*) awNqRFe aN1v6z9W43:(UIMotionEffect*) aN1v6z9W43 ap8Zu5n:(UIActivity*) ap8Zu5n aNgGf:(UIWindow*) aNgGf aeLc9GZ:(UIApplication*) aeLc9GZ a2xVWCYzSuh:(UIRegion*) a2xVWCYzSuh apmvn0NxP:(UIApplication*) apmvn0NxP aZmNM:(UIDevice*) aZmNM a80Fa:(UIVisualEffectView*) a80Fa {
  599. NSLog(@"YXvrwHL9fTSmGi7oCBN");
  600. NSLog(@"SP0QAfcXp7UEnMxqtDF8GuHOLRhz");
  601. NSLog(@"pW4Vl0Ujdk8Tw1EBODrZsvgbtKPYq25QJn");
  602. NSLog(@"CIb2ayp5sD0TLnt7YWz1w3VROoM8Fk6Aq9iQN");
  603. NSLog(@"zBfnjwVFvsOeZT");
  604. NSLog(@"6q9vlms534r0p");
  605. NSLog(@"zkyPUGd2nuI4cofbqMKZ93e");
  606. NSLog(@"1UH5z0WGFh9QeB3jy7MbxtuKLcCpagYfqv");
  607. NSLog(@"B4JTDzibA1pVM8");
  608. NSLog(@"psAbg6zxwCiGoa2ML58UZNBRJTec4FjtPlI10");
  609. NSLog(@"ZNJTcby86zkoitXqBAu3g");
  610. NSLog(@"vNsr3yk9u7p5qAUL8atKBdSfJQ0m1ZGOw");
  611. NSLog(@"U42dDbKLMY");
  612. }
  613. -(void)a7maPM:(UISwitch*) a7maPM aIy6hQGt3:(UIBezierPath*) aIy6hQGt3 aDdG7:(UIBezierPath*) aDdG7 aZImSOijBX:(UISearchBar*) aZImSOijBX aD7GuqOPz:(UIDevice*) aD7GuqOPz asPub1HEmld:(UILabel*) asPub1HEmld aevGXC15pun:(UIWindow*) aevGXC15pun ahOQ3D0g15:(UICollectionView*) ahOQ3D0g15 {
  614. NSLog(@"k6E4yU8QZxmBCWP");
  615. NSLog(@"yEPSjprMhTfoiUt8cAQ");
  616. NSLog(@"sYN8y4xV3ikWQFbHP0ftRGe26M");
  617. NSLog(@"xophrq8nWifv9EscOS7w3uBD");
  618. NSLog(@"qkW0Kn5msu");
  619. NSLog(@"4q7KGgcPrjRbyDxAstdwN39FWQnzeakBm");
  620. NSLog(@"PY9uxr3ziXUHgTLD");
  621. NSLog(@"Tcu1IGObJij7ozMKrSLP3");
  622. NSLog(@"QqGNOzi3pTlnfJ8XrvyVS2");
  623. NSLog(@"5AnhQiKoSNW6XZsCTkpbM1ujV2IU");
  624. NSLog(@"re6Q8K50mup");
  625. NSLog(@"Z9wnBXO0jA6xuFyftSms1QaHz");
  626. NSLog(@"9bFGJzaiHPU");
  627. NSLog(@"c6MCH1l4AejwnLS8kKFxzy5dVQ9bBPDYZtmW2vos");
  628. NSLog(@"QDxU6qpj3uBtTNsJaKIdPOL98f2n7RFie");
  629. NSLog(@"be0ykFN24QWZK6L");
  630. NSLog(@"YkTOFQv14b");
  631. NSLog(@"TSgJ7lDnWjk4IUa6B3zM2Vi");
  632. NSLog(@"AQxDmWIGSqT9nvMgRa4");
  633. NSLog(@"DkvNyeJmBVczl1jrLUbIt");
  634. }
  635. -(void)anqolfRzC:(UIScreen*) anqolfRzC agxdKaHCrb5:(UIActivity*) agxdKaHCrb5 aMgDxsf3bpw:(UISearchBar*) aMgDxsf3bpw a6Z2FHzy:(UIAlertView*) a6Z2FHzy a3lWL:(UIUserInterfaceIdiom*) a3lWL aox3OTJQ:(UICollectionView*) aox3OTJQ aE0Pjwm:(UIScreen*) aE0Pjwm aUgeinO:(UIViewController*) aUgeinO {
  636. NSLog(@"cDJo7Vx1rmu9p2KybBentwGFRTPS5h");
  637. NSLog(@"vBfetynzOEkuHoaVJWLlb2h");
  638. NSLog(@"HUPgBJye2nGM39DTq");
  639. NSLog(@"cw1gKdaO27s6fWXpAFTYVobRurMe0U4ht");
  640. NSLog(@"F54klmhPVOrC9gIzeaS0dfoRHpLMyEj1tXBZK");
  641. NSLog(@"8bM3tZFoeamAlG1VqDCcn4xw7gXYI");
  642. NSLog(@"krylJ3deBv6RAUGVjaTnX5zFxCY");
  643. NSLog(@"qwv3jkTeZXdV");
  644. NSLog(@"zgqJLTBervZN3MP7nsmjYHtplKWy5OIXc2da6AQx");
  645. NSLog(@"EkHVbWiLwB2QhfS5NvK6cRa");
  646. NSLog(@"aleLn3O1CsfcEHmW9NhUrAiqyPbMz");
  647. NSLog(@"kBUJ4fOLSDabKsAuz");
  648. }
  649. -(void)awNjksh:(UITableView*) awNjksh aQalYc0d:(UIViewController*) aQalYc0d aKSe4q:(UIApplication*) aKSe4q ap6hF:(UIButton*) ap6hF achN0gM:(UIImage*) achN0gM {
  650. NSLog(@"xGO7qgpb1ez0VTmPda");
  651. NSLog(@"9nCTK0425HgcAiskQzIvJfujNtSDGy63");
  652. NSLog(@"XdQZpOB3tME0rz1AUJniesghmkwqfIx");
  653. NSLog(@"RZtCq2bzn37pBk5ce9Pj");
  654. NSLog(@"bGP0zuAqyXknlwQtvhOjMRFH528B1cZgV3UDmC94");
  655. NSLog(@"hK6iJGBEbN0gVkQL52tc");
  656. NSLog(@"ULCHRMYf1j6V8ePwqEc7x");
  657. NSLog(@"wVXteAOR5BsxFcum");
  658. NSLog(@"OwvQ96L28WC7pxzciY");
  659. NSLog(@"F0e1WZqmJHfGlNo8PdVa5ALDn7TyX3");
  660. NSLog(@"xvqeKIBg9FE3oibJj7DNRsG6aPO5Q");
  661. NSLog(@"LXhT9in7w6jI38NeAVqGmo");
  662. NSLog(@"eV2F6ag0j3UTcdBIGOxwhN57irJzHqZtsRCu");
  663. NSLog(@"YcaPfzDOXmkdJ1xZniCBug5QUHEsbN072V8");
  664. NSLog(@"uZRjENoatDBCUqd1c0PhMIYVpezl8r9KwxFHGW2");
  665. NSLog(@"WlqfEdJBgp29VZru07kRtALm34XIeYOabcvnGHiF");
  666. NSLog(@"mf6kyFDMOJjRgUKQBzvVi2");
  667. NSLog(@"ZP0vg1GTYj6HnqehbzpurEC5st");
  668. }
  669. -(void)akzUd:(UIKeyCommand*) akzUd arlu0:(UIActivity*) arlu0 ahB5u:(UIEdgeInsets*) ahB5u aSCniU:(UISearchBar*) aSCniU ar7KAHf:(UISwitch*) ar7KAHf a8IxTH:(UIBezierPath*) a8IxTH aEflxNFb:(UIColor*) aEflxNFb aolk2RwQS:(UITableView*) aolk2RwQS aNBHVMj749x:(UIVisualEffectView*) aNBHVMj749x ab2IkVRgu:(UIBarButtonItem*) ab2IkVRgu amoj1FR6:(UIInputView*) amoj1FR6 atF4z:(UIControlEvents*) atF4z auiX4Ksgevb:(UIInputView*) auiX4Ksgevb {
  670. NSLog(@"1StO7srnpaJPT2ZucKMd4BG");
  671. NSLog(@"JGziIOa0Wkt6vpYKZlwBT");
  672. NSLog(@"QX3q1RLAUKJWMyif");
  673. NSLog(@"jKouNqBlEIH3e");
  674. NSLog(@"F7ZgkxsGm2MUpjNa3ywAurdJSiTWOe");
  675. NSLog(@"xXY7J9hCtZqmPS6NIcyjFfK8Lo3g0azs");
  676. NSLog(@"2sohmLbpC3VK08AEnWzdxO4DM7Fqi9Hr");
  677. NSLog(@"eazbtVRnTs1NK729jXUmwD0Q5hcdxpPg");
  678. NSLog(@"5IMqar08UzlRgOvhmWCPXpYin79TctQNABLkDy");
  679. NSLog(@"7AFkxwThUNqzH0lnXDrWREt2Ba");
  680. NSLog(@"aX0mpBNv1hu");
  681. NSLog(@"TqowfEzsxyFXG03p");
  682. NSLog(@"3pRbKS4BhIJfQCo6zxwOlLmN5");
  683. NSLog(@"U2aId0EZRL4xpqejYmiDJk7QF");
  684. NSLog(@"0ipSUCyZTz6B");
  685. NSLog(@"jPBO9I4bEks8uQ0JngRKTCeNZa2oLm5i6h");
  686. }
  687. -(void)agh0YWCuN:(UIEdgeInsets*) agh0YWCuN aCDKPZALnk:(UIKeyCommand*) aCDKPZALnk aM07x5A:(UIImageView*) aM07x5A aJd0eKa:(UIFontWeight*) aJd0eKa aMtDzkiTr:(UIWindow*) aMtDzkiTr aUS9Dbh0CX:(UISearchBar*) aUS9Dbh0CX aZOUr9v2C:(UIColor*) aZOUr9v2C anvSGi:(UIInputView*) anvSGi aTnAFWckrO3:(UISwitch*) aTnAFWckrO3 aRqTgza3Z:(UIView*) aRqTgza3Z anHN9s:(UIApplication*) anHN9s ahoMatj:(UIViewController*) ahoMatj af4LTlzpoU6:(UISearchBar*) af4LTlzpoU6 {
  688. NSLog(@"mY98nNMBXvFVsgazOEDebwP2jq");
  689. NSLog(@"0aIOAjvdT27S396QcnZUextwlrVkMK");
  690. NSLog(@"UuHwkB6t0nb1LrvCDqs");
  691. NSLog(@"7sPBNR4JueivUG2aACkD1wX96nyTLtzdq5M");
  692. NSLog(@"HtB9LA6yIVksTUomGZ");
  693. NSLog(@"pT8r3g0CwZiMUKP6tXWLDmaGOc1BEVQhuqsdAb4");
  694. NSLog(@"eNgFBEMXCTQUxS6wjVlmGWiYq3JaunOfHt2");
  695. NSLog(@"RFPIHNzJs3pxSZhYl0d51cjAU6B");
  696. NSLog(@"DTNRwPYjLrM59bB2c3lQxFV4IfuG8n0mtKWeXqHv");
  697. NSLog(@"89vOYw0WuMtRiL1BPa5VcNmbF3dQS");
  698. NSLog(@"kLWTDx96ItRC80a");
  699. NSLog(@"nNlRUJC8LOyve4XYITBmKzdEw5hjuqfQsgi3ba");
  700. NSLog(@"IznRUF3PlKZBg5YGoOuqWTSN9");
  701. NSLog(@"ZPNf34SxuIz2kn5syCbt");
  702. NSLog(@"6ZjfJvYbas0uWwTMRdCKNtm35");
  703. NSLog(@"EAyglnTdjax0z4k7JoiW");
  704. NSLog(@"sojPJ5TYiSIdQm1uZVzxO4ywaDt8vFk6U7NH");
  705. }
  706. -(void)aaru0BD:(UIBarButtonItem*) aaru0BD anPW4V7kJi:(UIButton*) anPW4V7kJi a6bwmXu:(UIViewController*) a6bwmXu a5ejfx9CKrE:(UIBezierPath*) a5ejfx9CKrE aCpTGUn:(UIEdgeInsets*) aCpTGUn aka3oR4AZUn:(UIBarButtonItem*) aka3oR4AZUn aWO8lPTz:(UIDevice*) aWO8lPTz aeTMmgHSs:(UIActivity*) aeTMmgHSs aC28HX:(UIScreen*) aC28HX aGPIZ:(UIColor*) aGPIZ aX24J:(UIView*) aX24J aZzSlqPY:(UIRegion*) aZzSlqPY a2ARt71OE:(UIControlEvents*) a2ARt71OE a48JY:(UIScreen*) a48JY apAEQi9s:(UISearchBar*) apAEQi9s aopZHx:(UIControl*) aopZHx aleWA7tjw:(UIControl*) aleWA7tjw asqrBl:(UIApplication*) asqrBl {
  707. NSLog(@"weIrSXM8NPfiO26thg4k");
  708. NSLog(@"vG0su2bLqogPriB8kNCdMH6VO5aTQefR");
  709. NSLog(@"7MfFa4myRdgu");
  710. NSLog(@"9SgX8mHuRinQ2vfNOJWsCq1oFEwK");
  711. NSLog(@"LBqHQJvyp6T2bhfn87gzdeK4ERcO1");
  712. NSLog(@"7rLfpiXPuomG1b4S5KDW3dRUVagNcYwECxTnQJyH");
  713. NSLog(@"nbOjae3Iv4AfZxCdT8kXNS90Yq2hV");
  714. NSLog(@"DfjwZqMPnpOE2r5u78kY");
  715. NSLog(@"VFPjlswkLEAJovHx4ncDtWfXuZUi18BCmr0GzgK");
  716. NSLog(@"QmDIzN1odErV3aGUnuxYWeAC");
  717. NSLog(@"wqBJOVNG1jS38DQfLl");
  718. NSLog(@"6CNIjwi41yWdcvExbY20");
  719. NSLog(@"1eaVyLP3zdoplvSwnGAuEFtHs6cOQ0jNZhr");
  720. NSLog(@"5CkpJQFPzj1OE0oSYW4BATyKa");
  721. NSLog(@"bI06GcP3LOftNFATEQKi1d8qBuwSJevX5okgD");
  722. NSLog(@"FzEZcqhYwUJWjgI1pM8R9k3uLV");
  723. NSLog(@"lRerU9fmJg4uiW6PFDHdkvSo2KzL");
  724. }
  725. -(void)abQu2A:(UIEvent*) abQu2A aKUw61jN:(UIFont*) aKUw61jN anwg9cJ:(UISearchBar*) anwg9cJ aO4nc:(UIDevice*) aO4nc aDpsF2Tr:(UISearchBar*) aDpsF2Tr aE2lXu:(UIBarButtonItem*) aE2lXu aMBpE:(UIImage*) aMBpE au3QS6zV4Ko:(UITableView*) au3QS6zV4Ko acfeilWb:(UISwitch*) acfeilWb aFYTA9kEtGV:(UIEdgeInsets*) aFYTA9kEtGV agyjt:(UIFontWeight*) agyjt aIGsXf0ph57:(UIFont*) aIGsXf0ph57 {
  726. NSLog(@"jgaHW0Sf6lzARKw2PXEy5L8huGpCUv41Q7DcYx");
  727. NSLog(@"yVq7wdb9U4rYj2QhJM8aE0DlTGPvgfZ6Ixnz");
  728. NSLog(@"fFugtRyXIT1asCxbjvOk7n");
  729. NSLog(@"hR6Hnkq3xDYdEavFJgVW7XywUOoumcZjSIeiTpQB");
  730. NSLog(@"F35Xlb8tLDswQvSGMKCir4yR");
  731. NSLog(@"GT5Nl1Oh3VCKnjk6FRUgZAXe");
  732. NSLog(@"b51YBIsJl0TO8tuK3ZQyHpqgxGCn");
  733. NSLog(@"rJPnwyps5jX7H2A64b910");
  734. NSLog(@"2NYEVer7utMvfOQbPsXwDmLaqUSCB4dT");
  735. NSLog(@"NcR3XuvtQPlYAVeJsO4zFxSq0LbifoUj");
  736. NSLog(@"UjoeJdm61YQ4D7v");
  737. }
  738. @end