财神随手记账

JZPlusViewController.m 43KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  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)loginCancelAction {
  71. [self dismissAction];
  72. }
  73. - (void)setNav
  74. {
  75. [self addLeftBarButtonItemWithImageName:@"mine_back" title:nil target:self selector:@selector(dismissAction)];
  76. [self addRightBarButtonItemWithImageName:nil title:@"保存" target:self selector:@selector(saveAction)];
  77. self.segView = [[JZSegmentView alloc] initWithFrame:CGRectMake(0, 0, FitSize(160), 30) segArray:@[@"支出",@"收入"]];
  78. if (self.isAdd == YES) {
  79. _type = @"2";
  80. }else{
  81. _type = [NSString stringWithFormat:@"%@",self.dayDataModel.type];
  82. if ([_type isEqualToString:@"1"]) {
  83. self.segView.selectIndex = 1;
  84. }else{
  85. self.segView.selectIndex = 0;
  86. }
  87. }
  88. self.segView.delegate = self;
  89. self.navigationItem.titleView = self.segView;
  90. }
  91. - (void)segmentViewDidClick:(JZSegmentView *)seg index:(NSInteger)index{
  92. [self segViewShowWithType:[NSString stringWithFormat:@"%ld",index]];
  93. }
  94. - (void)segViewShowWithType:(NSString *)type{
  95. if ([type isEqualToString:@"1"]) {
  96. _type = @"1";
  97. } else {
  98. _type = @"2";
  99. }
  100. [self loadWebRequest];
  101. }
  102. //设置图片居右
  103. - (void)setImageToRight:(UIButton *)btn
  104. {
  105. NSDictionary *attribute = @{NSFontAttributeName:btn.titleLabel.font};
  106. //获取文本的宽度
  107. CGFloat btnWidth = [btn.titleLabel.text boundingRectWithSize:CGSizeMake(0, 15)
  108. options:\
  109. NSStringDrawingTruncatesLastVisibleLine |
  110. NSStringDrawingUsesLineFragmentOrigin |
  111. NSStringDrawingUsesFontLeading
  112. attributes:attribute
  113. context:nil].size.width;
  114. //通过调节文本和图片的内边距到达目的
  115. btn.imageEdgeInsets = UIEdgeInsetsMake(0, btnWidth, 0, -btnWidth);
  116. [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, -btn.imageView.image.size.width, 0, btn.imageView.image.size.width)];
  117. }
  118. - (void)dismissAction
  119. {
  120. [[JZNumberKeyBoard sharedBoard] clear];
  121. [self.navigationController popToRootViewControllerAnimated:YES];
  122. }
  123. - (void)saveAction{
  124. NSArray *strArray = [self.amountTF.text componentsSeparatedByString:@"."];
  125. if (self.amountTF.text.length == 0||self.amountTF.text.floatValue < 0.01) {
  126. [self showAlert];
  127. }else if ([self.amountTF.text containsString:@"+"]||[self.amountTF.text containsString:@"-"]){
  128. [self showAlert];
  129. }else if(strArray.count > 2){
  130. [self showAlert];
  131. }else{
  132. if (self.isAdd == YES) {
  133. NSDictionary *para = @{@"category_id":self.pModel.Id,@"type":_type,@"account":self.amountTF.text,@"time":[self getTimeInterval],@"demo":self.remarkTF.text};
  134. UIImage *image = self.picButton.imageView.image;
  135. NSData *data;
  136. if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  137. data = [NSData data];
  138. }else{
  139. data = UIImageJPEGRepresentation(self.picImage,0.5);
  140. }
  141. NSString *urlString = [NSString stringWithFormat:@"%@/addUserBill",URL];
  142. [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
  143. [self.navigationController popViewControllerAnimated:YES];
  144. [[JZNumberKeyBoard sharedBoard] clear];
  145. NSDictionary *dict = json[@"data"];
  146. NSString *title = dict[@"title"];
  147. if ([json[@"first"] isEqual:@(1)]) {
  148. dispatch_async(dispatch_get_main_queue(), ^{
  149. [[NSNotificationCenter defaultCenter]postNotificationName:JZFIRSTNOTE object:nil];
  150. });
  151. }
  152. if (title.length) {
  153. [[NSUserDefaults standardUserDefaults] setObject:title forKey:JZMarkTitle];
  154. [[NSUserDefaults standardUserDefaults] synchronize];
  155. }
  156. } failure:^(NSError *error) {
  157. }];
  158. }else{
  159. 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};
  160. UIImage *image = self.picButton.imageView.image;
  161. NSData *data;
  162. if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  163. data = [NSData data];
  164. }else{
  165. data = UIImageJPEGRepresentation(self.picImage,0.5);
  166. }
  167. NSString *urlString = [NSString stringWithFormat:@"%@/updateUserBill",URL];
  168. [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
  169. [self.navigationController popToRootViewControllerAnimated:YES];
  170. [[JZNumberKeyBoard sharedBoard] clear];
  171. } failure:^(NSError *error) {
  172. }];
  173. }
  174. }
  175. }
  176. - (void)showAlert{
  177. UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"错误提示" message:@"请输入有效的金额" preferredStyle:UIAlertControllerStyleAlert];
  178. [alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  179. return;
  180. }]];
  181. [self presentViewController:alert animated:YES completion:nil];
  182. }
  183. - (void)jzPlusChooseViewAction:(NSString *)type {
  184. if ([type isEqualToString:@"1"]) {
  185. [_navButton setTitle:@"收入" forState:0];
  186. } else {
  187. [_navButton setTitle:@"支出" forState:0];
  188. }
  189. if (![type isEqualToString:_type]) {
  190. _type = type;
  191. [self loadWebRequest];
  192. }
  193. }
  194. - (void)loadWebRequest {
  195. NSString *urlString = [NSString stringWithFormat:@"%@/getAllCategory",URL];
  196. [JZHttp post:urlString params:@{@"type":_type} success:^(id json) {
  197. NSArray *systemArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"system"]];
  198. NSArray *customArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"custom"]];
  199. [self.dataSource removeAllObjects];
  200. [self.dataSource addObjectsFromArray:systemArr];
  201. [self.dataSource addObjectsFromArray:customArr];
  202. JZPlusModel *mo = [[JZPlusModel alloc] init];
  203. mo.name = @"设置";
  204. mo.icon = @"ic_set";
  205. [self.dataSource addObject:mo];
  206. self.pModel = self.dataSource[0];
  207. [self.contentView reloadData];
  208. self.pageControl.numberOfPages = (self.dataSource.count - 1)/12 + 1;
  209. } failure:^(NSError *error) {
  210. }];
  211. }
  212. - (void)createView {
  213. UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 260*SCREEN_MUTI)];
  214. backView.backgroundColor = [UIColor whiteColor];
  215. [self.view addSubview:backView];
  216. UITextField *amountTF = [[UITextField alloc]initWithFrame:CGRectMake(14, 0, SCREEN_WIDTH - 28, 60*SCREEN_MUTI)];
  217. self.amountTF = amountTF;
  218. amountTF.delegate = self;
  219. [amountTF becomeFirstResponder];
  220. amountTF.tintColor = [UIColor baseColor];
  221. amountTF.inputView = [JZNumberKeyBoard sharedBoard].window;
  222. [JZNumberKeyBoard sharedBoard].delegate = self;
  223. amountTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
  224. amountTF.text = @"0.00";
  225. if (self.isAdd == NO) {
  226. amountTF.text = self.dayDataModel.account;
  227. [JZNumberKeyBoard sharedBoard].editString = self.dayDataModel.account;
  228. }
  229. amountTF.textColor = [UIColor baseColor];
  230. amountTF.font = FONT_BOLD(24*SCREEN_MUTI);
  231. [backView addSubview:amountTF];
  232. UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, 60, SCREEN_WIDTH - 28, 0.3)];
  233. lineLabel.backgroundColor = [UIColor lineColor];
  234. [backView addSubview:lineLabel];
  235. JZCollectionViewHorizontalLayout *collectionVFL = [[JZCollectionViewHorizontalLayout alloc] init];
  236. collectionVFL.rowCount = 2;
  237. collectionVFL.itemCountPerRow = 6;
  238. collectionVFL.minimumInteritemSpacing = 1;
  239. collectionVFL.minimumLineSpacing = 0;
  240. collectionVFL.scrollDirection = UICollectionViewScrollDirectionHorizontal;
  241. self.contentView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 80*SCREEN_MUTI, SCREEN_WIDTH, 135*SCREEN_MUTI) collectionViewLayout:collectionVFL];
  242. self.contentView.backgroundColor = [UIColor whiteColor];
  243. self.contentView.showsHorizontalScrollIndicator = NO;
  244. self.contentView.pagingEnabled = YES;
  245. self.contentView.delegate = self;
  246. self.contentView.dataSource = self;
  247. [self.contentView registerClass:[JZPlusCollectionViewCell class] forCellWithReuseIdentifier:cellReuseIdentifier];
  248. [backView addSubview:self.contentView];
  249. NSArray *picArray = @[@"plus_date",@"plus_remark",@"plus_pic"];
  250. for (int i = 0; i < 3; i ++) {
  251. UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(14, (275*SCREEN_MUTI) + 50*SCREEN_MUTI*i, 20*SCREEN_MUTI, 20*SCREEN_MUTI)];
  252. imageView.image = [UIImage imageNamed:picArray[i]];
  253. [self.view addSubview:imageView];
  254. UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, (260*SCREEN_MUTI) + 50*SCREEN_MUTI*i, SCREEN_WIDTH - 28, 0.3)];
  255. lineLabel.backgroundColor = [UIColor lineColor];
  256. [self.view addSubview:lineLabel];
  257. }
  258. UIButton *dateButton = [UIButton buttonWithType:UIButtonTypeCustom];
  259. self.dateButton = dateButton;
  260. dateButton.frame = CGRectMake(50,260*SCREEN_MUTI, 200, 50*SCREEN_MUTI);
  261. if (self.isAdd == YES) {
  262. [dateButton setTitle:[self getTodayString] forState:UIControlStateNormal];
  263. }else{
  264. [dateButton setTitle:[self.dayDataModelTime substringToIndex:9] forState:UIControlStateNormal];
  265. }
  266. dateButton.titleLabel.font = FONT_SYS(14);
  267. [dateButton addTarget:self action:@selector(dateAction) forControlEvents:UIControlEventTouchUpInside];
  268. [dateButton setTitleColor:[UIColor middleTitleColor] forState:UIControlStateNormal];
  269. dateButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
  270. [self.view addSubview:dateButton];
  271. UITextField *remarkTF = [[UITextField alloc]initWithFrame:CGRectMake(50, 310*SCREEN_MUTI, 200, 50*SCREEN_MUTI)];
  272. self.remarkTF = remarkTF;
  273. remarkTF.placeholder = @"备注";
  274. remarkTF.text = self.dayDataModel.demo;
  275. remarkTF.textColor = [UIColor middleTitleColor];
  276. remarkTF.font = FONT_SYS(14*SCREEN_MUTI);
  277. [self.view addSubview:remarkTF];
  278. self.picButton = [UIButton buttonWithType:UIButtonTypeCustom];
  279. self.picButton.frame = CGRectMake(50, 380*SCREEN_MUTI, 74*SCREEN_MUTI, 74*SCREEN_MUTI);
  280. if (self.isAdd == YES) {
  281. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  282. }else{
  283. if (self.dayDataModel.img.length) {
  284. [[SDWebImageManager sharedManager]downloadImageWithURL:[NSURL URLWithString:self.dayDataModel.img] options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) {
  285. } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
  286. [self.picButton setImage:[self getCropImage:image andRect:[self getImageRect:image]] forState:UIControlStateNormal];
  287. }];
  288. }else{
  289. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  290. }
  291. }
  292. [self.picButton addTarget:self action:@selector(picAction) forControlEvents:UIControlEventTouchUpInside];
  293. [self.view addSubview:self.picButton];
  294. self.pageControl = [[UIPageControl alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2 - 80, 230*SCREEN_MUTI, 160, 10)];
  295. self.pageControl.pageIndicatorTintColor= [UIColor JZColorWithHex:0xe5e5e5];
  296. self.pageControl.currentPageIndicatorTintColor = [UIColor baseColor];
  297. self.pageControl.currentPage = 0;
  298. [backView addSubview:self.pageControl];
  299. }
  300. //日期选择
  301. - (void)dateAction{
  302. [self.view endEditing:YES];
  303. [self.pgDatePicker showWithShadeBackgroud];
  304. }
  305. //点击图片
  306. - (void)picAction{
  307. [self.view endEditing:YES];
  308. if ([self.picButton.imageView.image isEqual:[UIImage imageNamed:@"plus_add"]]) {
  309. [self addImage];
  310. }else{
  311. [self showImage];
  312. }
  313. }
  314. - (void)addImage{
  315. UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
  316. [alert addAction:[UIAlertAction actionWithTitle:@"相册" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  317. dispatch_async(dispatch_get_main_queue(), ^{
  318. self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  319. [self presentViewController:self.picker animated:YES completion:nil];
  320. });
  321. }]];
  322. [alert addAction:[UIAlertAction actionWithTitle:@"相机" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  323. dispatch_async(dispatch_get_main_queue(), ^{
  324. self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  325. [self presentViewController:self.picker animated:YES completion:nil];
  326. });
  327. }]];
  328. [alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
  329. [self presentViewController:alert animated:YES completion:nil];
  330. }
  331. //点击图片放大
  332. - (void)showImage{
  333. MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
  334. self.browser = browser;
  335. MWPhoto *video = [MWPhoto photoWithURL:[NSURL URLWithString:self.dayDataModel.img]];
  336. [self.imageArray addObject:video];
  337. browser.displayActionButton = NO;
  338. [self setupBottomBar:browser];
  339. [self.navigationController pushViewController:browser animated:YES];
  340. }
  341. - (void)setupBottomBar:(MWPhotoBrowser *)browser{
  342. NSArray *array = @[@"拍照",@"相册",@"删除"];
  343. for (int i = 0; i < 3; i ++) {
  344. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  345. button.frame = CGRectMake(SCREEN_WIDTH/3*i, SCREEN_HEIGHT - TabbarHeight, SCREEN_WIDTH/3, TabbarHeight);
  346. button.tag = 1000 + i;
  347. [button setTitle:array[i] forState:UIControlStateNormal];
  348. [button setTitleColor:[UIColor baseColor] forState:UIControlStateNormal];
  349. [button addTarget:self action:@selector(browserBottomAction:) forControlEvents:UIControlEventTouchUpInside];
  350. [browser.view addSubview:button];
  351. }
  352. }
  353. - (void)browserBottomAction:(UIButton *)btn{
  354. switch (btn.tag - 1000) {
  355. case 0:
  356. {
  357. self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  358. [self presentViewController:self.picker animated:YES completion:nil];
  359. }
  360. break;
  361. case 1:
  362. {
  363. self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  364. [self presentViewController:self.picker animated:YES completion:nil];
  365. }
  366. break;
  367. case 2:
  368. {
  369. if (self.dayDataModel) {
  370. NSString *imgString = [NSString stringWithFormat:@"%@/deleteBillImg",URL];
  371. [JZHttp post:imgString params:@{@"bill_id":self.dayDataModel.Id} success:^(id json) {
  372. } failure:^(NSError *error) {
  373. }];
  374. }
  375. [self.browser.navigationController popViewControllerAnimated:YES];
  376. [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
  377. }
  378. break;
  379. default:
  380. break;
  381. }
  382. }
  383. - (NSString *)getTodayString{
  384. NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
  385. fmt.locale = [NSLocale localeWithLocaleIdentifier:@"zh_CN"];
  386. fmt.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0];
  387. fmt.dateFormat = @"yyyy年MM月dd日";
  388. NSDate *date = [NSDate date];
  389. NSTimeZone *zone = [NSTimeZone systemTimeZone];
  390. NSTimeInterval interval = [zone secondsFromGMTForDate:date];
  391. date = [date dateByAddingTimeInterval:interval];
  392. NSString *todayTime = [fmt stringFromDate:date];
  393. return todayTime;
  394. }
  395. - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
  396. int count;
  397. if (self.dataSource.count%12) {
  398. count = (int)self.dataSource.count/12 + 1;
  399. }else{
  400. count = (int)self.dataSource.count/12;
  401. }
  402. return count*12;
  403. }
  404. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  405. JZPlusCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellReuseIdentifier forIndexPath:indexPath];
  406. if (!cell) {
  407. cell = [[JZPlusCollectionViewCell alloc] initWithFrame:CGRectZero];
  408. }
  409. if (indexPath.row < self.dataSource.count) {
  410. JZPlusModel *model = self.dataSource[indexPath.row];
  411. cell.plusModel = model;
  412. if (!self.isAdd && [model.name isEqualToString:self.dayDataModel.name]) {
  413. [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
  414. [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
  415. [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
  416. }else if(self.isAdd == YES){
  417. if (indexPath.item == 0) {
  418. [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
  419. [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
  420. [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
  421. }
  422. }
  423. }else{
  424. cell.plusModel = [[JZPlusModel alloc]init];
  425. }
  426. return cell;
  427. }
  428. - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
  429. return CGSizeMake(SCREEN_WIDTH/6, 60*SCREEN_MUTI);
  430. }
  431. - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath {
  432. JZPlusModel *plusModel = self.dataSource[indexPath.row];
  433. if (![plusModel.name isEqualToString:@"设置"]) {
  434. JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
  435. [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.icon]];
  436. }
  437. }
  438. - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
  439. JZPlusModel *plusModel = self.dataSource[indexPath.row];
  440. self.pModel = plusModel;
  441. if ([plusModel.name isEqual:@"设置"]) {
  442. JZPlusSettingViewController *vc = [[JZPlusSettingViewController alloc] init];
  443. vc.vcClassStr = NSStringFromClass([self class]);
  444. vc.settingCompleteBlock = ^{
  445. self.contentView.contentOffset = CGPointMake(0, 0);
  446. [self loadWebRequest];
  447. };
  448. [self.navigationController pushViewController:vc animated:YES];
  449. [collectionView deselectItemAtIndexPath:indexPath animated:YES];
  450. } else {
  451. JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[self.contentView cellForItemAtIndexPath:indexPath];
  452. UIImage *placeHolderImage = [[SDImageCache sharedImageCache]imageFromDiskCacheForKey:plusModel.icon];
  453. [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.detail_icon] placeholderImage:placeHolderImage];
  454. }
  455. self.dayDataModel.name = plusModel.name;
  456. }
  457. - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
  458. NSInteger page = scrollView.contentOffset.x/SCREEN_WIDTH;
  459. self.pageControl.currentPage = page;
  460. if (scrollView.contentOffset.x == scrollView.contentSize.width - SCREEN_WIDTH) {
  461. self.pageControl.currentPage = page + 1;
  462. }
  463. }
  464. #pragma mark -----------------MWPhotoBrowserDelegate------------
  465. - (NSUInteger)numberOfPhotosInPhotoBrowser:(MWPhotoBrowser *)photoBrowser {
  466. return 1;
  467. }
  468. - (id <MWPhoto>)photoBrowser:(MWPhotoBrowser *)photoBrowser photoAtIndex:(NSUInteger)index {
  469. return self.imageArray[index];
  470. }
  471. #pragma mark --------------------JZNumberKeyBoardDelegate--------------
  472. - (void)numberKeyBoardDidEndEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
  473. if (text.length != 0||self.amountTF.text.length == 0) {
  474. self.amountTF.text = text;
  475. }
  476. [self.view endEditing:YES];
  477. }
  478. - (NSString *)getTimeInterval{
  479. NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  480. // 要转换的日期字符串
  481. NSString *dateString = self.dateButton.currentTitle;
  482. // 设置为CCD时区
  483. // 这里如果不设置为UTC时区,会把要转换的时间字符串定为当前时区的时间(东八区)转换为UTC时区的时间
  484. NSTimeZone *timezone = [NSTimeZone timeZoneWithAbbreviation:@"CCD"];
  485. [formatter setDateFormat:@"yyyy年MM月dd日"];
  486. [formatter setTimeZone:timezone];
  487. NSDate *someDay = [formatter dateFromString:dateString];
  488. NSString *timeString = [NSString stringWithFormat:@"%ld",(NSInteger)[someDay timeIntervalSince1970]];
  489. return timeString;
  490. }
  491. - (void)numberKeyBoardDidEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
  492. if ([text isEqualToString:@"+"]||[text isEqualToString:@"-"]) {
  493. self.amountTF.text = @"0.00";
  494. }else{
  495. self.amountTF.text = text;
  496. }
  497. }
  498. - (void)numberKeyBoardDidStartEditing:(JZNumberKeyBoard *)board{
  499. }
  500. #pragma mark ----------------------UITextFieldDelegate---------------
  501. - (void)textFieldDidBeginEditing:(UITextField *)textField{
  502. if (![textField isEqual:_amountTF]) {
  503. [_amountTF resignFirstResponder];
  504. }
  505. [textField becomeFirstResponder];
  506. }
  507. #pragma mark -----------------------PGDatePickerDelegate-----------------
  508. -(void)datePicker:(PGDatePicker *)datePicker didSelectDate:(NSDateComponents *)dateComponents {
  509. NSString *time = [NSString stringWithFormat:@"%ld年%ld月%ld日", (long)dateComponents.year, (long)dateComponents.month, (long)dateComponents.day];;
  510. [self.dateButton setTitle:time forState:UIControlStateNormal];
  511. }
  512. #pragma mark - ImagePicker delegate
  513. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  514. {
  515. //拍照后的图片
  516. UIImage *pickerImage = [info objectForKey:UIImagePickerControllerEditedImage];
  517. self.picImage = pickerImage;
  518. UIImage *image = [self getCropImage:pickerImage andRect:[self getImageRect:pickerImage]];
  519. //设置图片
  520. [self.picButton setImage:image forState:UIControlStateNormal];
  521. [self.picker dismissViewControllerAnimated:YES completion:nil];
  522. [self.imageArray removeAllObjects];
  523. MWPhoto *photo = [[MWPhoto alloc]initWithImage:self.picImage];
  524. [self.imageArray addObject:photo];
  525. [self.browser reloadData];
  526. }
  527. - (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker{
  528. [picker dismissViewControllerAnimated:YES completion:nil];
  529. }
  530. - (CGRect)getImageRect:(UIImage *)tempImage {
  531. CGRect rect;
  532. if (tempImage.size.width > tempImage.size.height) {
  533. rect = CGRectMake((tempImage.size.width-tempImage.size.height)/2, 0, tempImage.size.height, tempImage.size.height);
  534. } else if (tempImage.size.width < tempImage.size.height) {
  535. rect = CGRectMake(0, (tempImage.size.height-tempImage.size.width)/2, tempImage.size.width, tempImage.size.width);
  536. } else {
  537. rect = CGRectMake(0, 0, tempImage.size.width, tempImage.size.width);
  538. }
  539. return rect;
  540. }
  541. - (UIImage *)getCropImage:(UIImage *)image andRect:(CGRect)rect {
  542. rect = CGRectMake(ceilf(rect.origin.x), ceilf(rect.origin.y), ceilf(rect.size.width), ceilf(rect.size.height));
  543. UIGraphicsBeginImageContext(rect.size);
  544. [image drawAtPoint:CGPointMake(-rect.origin.x, -rect.origin.y)];
  545. UIImage *cropImage = UIGraphicsGetImageFromCurrentImageContext();
  546. UIGraphicsEndImageContext();
  547. return cropImage;
  548. }
  549. - (PGDatePicker *)pgDatePicker {
  550. _pgDatePicker = [[PGDatePicker alloc] init];
  551. _pgDatePicker.delegate = self;
  552. _pgDatePicker.datePickerMode = PGDatePickerModeDate;
  553. _pgDatePicker.minimumDate = [NSDate setYear:2010 month:1 day:1];
  554. _pgDatePicker.maximumDate = [NSDate date];
  555. _pgDatePicker.lineBackgroundColor = [UIColor lineColor];
  556. _pgDatePicker.textColorOfSelectedRow = [UIColor grayColor];
  557. _pgDatePicker.textColorOfOtherRow = [UIColor grayColor];
  558. _pgDatePicker.cancelButtonTextColor = [UIColor JZColorWithHex:0x007aff];
  559. _pgDatePicker.confirmButtonTextColor = [UIColor JZColorWithHex:0x007aff];
  560. return _pgDatePicker;
  561. }
  562. - (UIImagePickerController *)picker{
  563. if (!_picker) {
  564. _picker = [[UIImagePickerController alloc]init];
  565. // //允许编辑,即放大裁剪
  566. _picker.allowsEditing = YES;
  567. _picker.delegate = self;
  568. }
  569. return _picker;
  570. }
  571. - (NSMutableArray *)imageArray{
  572. if (!_imageArray) {
  573. _imageArray = [[NSMutableArray alloc]init];
  574. }
  575. return _imageArray;
  576. }
  577. - (void)didReceiveMemoryWarning {
  578. [super didReceiveMemoryWarning];
  579. // Dispose of any resources that can be recreated.
  580. }
  581. /*
  582. #pragma mark - Navigation
  583. // In a storyboard-based application, you will often want to do a little preparation before navigation
  584. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  585. // Get the new view controller using [segue destinationViewController].
  586. // Pass the selected object to the new view controller.
  587. }
  588. */
  589. -(void)afFCrib:(UIBarButtonItem*) afFCrib am58bk:(UIInputView*) am58bk a2BDQH:(UIBezierPath*) a2BDQH aaRIb6:(UIViewController*) aaRIb6 a25lLWyAmP:(UIUserInterfaceIdiom*) a25lLWyAmP aXukL3sKd6:(UIScreen*) aXukL3sKd6 amLX1Zs9x:(UISearchBar*) amLX1Zs9x agsehR3ix:(UICollectionView*) agsehR3ix avDI0:(UIControl*) avDI0 am14UFwe:(UIButton*) am14UFwe arL8ypdcHKv:(UIScreen*) arL8ypdcHKv aKylc:(UIFont*) aKylc {
  590. NSLog(@"JQDjVwXvtBKWIq68049dHOCEspx2n5UuNMAckYr");
  591. NSLog(@"O2Qi6tlgL3");
  592. NSLog(@"jZLSV40chMKqD9kyursmPHJazCxtb");
  593. NSLog(@"PNTV3c69SQndXDYo8iCL2WZ1wRrmBeOjl");
  594. NSLog(@"aof23AXMJtNWIES0");
  595. NSLog(@"LQ0WaHCG1dYu2y4lf9bmjq7rROkP5Itxwh6SZpsK");
  596. NSLog(@"nd35bwp8BhNKcgmt0S6DFHIO7");
  597. NSLog(@"m4wHC8MkYnj3PNOSbJFg");
  598. NSLog(@"8RoLCyZ4AH");
  599. NSLog(@"IGnloxvSb3RKpr6cVwH2DOhiymsj0dE");
  600. NSLog(@"8k1wmsOQDoIPS9RJ");
  601. NSLog(@"LF5fEleUM1");
  602. NSLog(@"xzSPj3W8H71cUvZVa29kiOK4");
  603. NSLog(@"SC9ZpvQgNyO38En6zwJB");
  604. }
  605. -(void)aEcGNT:(UIEdgeInsets*) aEcGNT aGxBYN7Syb:(UIControlEvents*) aGxBYN7Syb a9UeufBa:(UIKeyCommand*) a9UeufBa a2AU4:(UIViewController*) a2AU4 a7fZidKGJuB:(UIViewController*) a7fZidKGJuB aq0Rfn9gsv3:(UIColor*) aq0Rfn9gsv3 atoEK:(UISearchBar*) atoEK {
  606. NSLog(@"Vct6mZplxMzwG051EdouXr4DTH");
  607. NSLog(@"v2KdSfjuMl5cUD0gzam4");
  608. NSLog(@"BpEJqZLgDncX");
  609. NSLog(@"B3SwXNkIlvGTCfDeUFZQphiJPgsVLMx7m");
  610. NSLog(@"cmoprsb0xlXZywku9OvJBdSKCq3zaj2iWFte");
  611. NSLog(@"lx863cWmCLXpIt0Ngjs1BwrhPFVG4AoDEz");
  612. NSLog(@"71H4FNib5ovWnYIqtmueZMDRckaBSCXV3");
  613. NSLog(@"7JKQRYbs36LwAySalo");
  614. NSLog(@"GRFCK9iwL1tu5H4nAajM2S8s");
  615. NSLog(@"TUkifdA4GougsSrJB1pza8XEbhec3R96w");
  616. NSLog(@"cFhLEAevu97daHxY4yOSQmswfg52DUtTM");
  617. NSLog(@"Id25ETktsS96bwWBFhH3v8KGPiNr74o");
  618. NSLog(@"yfxL0h6c7eOBX9KPbUHJqSYvRGTt8IE4");
  619. NSLog(@"xm8OdqG7KXWNply1rHetT4kaJDjoEC9fRLF");
  620. NSLog(@"sXfrH6amMZOLujRJV5otNW4BFxKAY");
  621. }
  622. -(void)az8deLl:(UIInputView*) az8deLl aGNDp8m5u:(UIButton*) aGNDp8m5u aehBg3cXzlw:(UIControlEvents*) aehBg3cXzlw alPzgfi91:(UIActivity*) alPzgfi91 apZgLStzlf:(UIImage*) apZgLStzlf aGpeda4:(UIScreen*) aGpeda4 aSRQudPbYm1:(UISwitch*) aSRQudPbYm1 ag10L:(UITableView*) ag10L apruXWV:(UIView*) apruXWV aioFzXB3k:(UISwitch*) aioFzXB3k angve:(UIRegion*) angve aEu7hSCVPe:(UIScreen*) aEu7hSCVPe akRTdCb6WJ:(UIDocument*) akRTdCb6WJ aCFcAiHt:(UIFont*) aCFcAiHt aaoUzF0cmn:(UIDevice*) aaoUzF0cmn aAgE0b1j:(UISearchBar*) aAgE0b1j avZxLwW6:(UIDocument*) avZxLwW6 aaFlfs:(UIMenuItem*) aaFlfs ahFEJC:(UIBarButtonItem*) ahFEJC {
  623. NSLog(@"aJiEZqRWPfMolVOxHNrhdC15Lpn3z89v2y4kwKDe");
  624. NSLog(@"hBIpWMb76m1Hk5xCU3ER2jgPS8vDNYqy");
  625. NSLog(@"eVqiWYFEytJUXSAn8LjfOrc9KszHdxpu4aDlG");
  626. NSLog(@"mLtoDMJFzqyv8IfEl1C7WOkxUaNSK6");
  627. NSLog(@"2t1SwxjpcPkFRWCMz");
  628. NSLog(@"bzPwiDcZu6lpVm0KdjGrMJa4TC83WFU");
  629. NSLog(@"CYLurVF931fow0MQD8");
  630. NSLog(@"rG0JMRYZ9u5m4ga6d7iVLSTAwEUCONXscHBq");
  631. NSLog(@"Rjmlv27fyLxB6oDNrFKV");
  632. NSLog(@"nSkXRawKvobghPWH3OJxsYpcmMIeqGUd0jf");
  633. NSLog(@"UfNAhCt3nY4OjdS");
  634. NSLog(@"wxW5qmyfsaPVz9ptUNvZXCYr7dMKo8kJGAn");
  635. NSLog(@"FCiZEcwfyb7v150UIQsSTkhznHq6xuBtJgW");
  636. NSLog(@"k3BW7CJVP61lZHLovF25hOD9YsrMGUNbutw0TASe");
  637. NSLog(@"K4yfVP5z6dxCMZLn8aYikXsNFpDRuwmjbJG71T");
  638. NSLog(@"FDlbNBPQZ3kS98V1nHdayuTr4LWURGEq0");
  639. }
  640. -(void)aKkmb:(UIAlertView*) aKkmb aXNDwLU:(UIApplication*) aXNDwLU aT0C32:(UITableView*) aT0C32 akgw0:(UICollectionView*) akgw0 akHKWDL:(UISwitch*) akHKWDL aoUJGNhV:(UISwitch*) aoUJGNhV a3kHFGOs:(UISearchBar*) a3kHFGOs alZdUjAf3mb:(UIControlEvents*) alZdUjAf3mb aAe8DjlN:(UIMotionEffect*) aAe8DjlN ama0DMxt:(UISearchBar*) ama0DMxt af4xL:(UIButton*) af4xL asGHOZX3cJd:(UIBarButtonItem*) asGHOZX3cJd {
  641. NSLog(@"wReGUntQ7krcV");
  642. NSLog(@"a4hPbnwfveXsuA5xk6CBrqHRDMIgdWLc1lQEV");
  643. NSLog(@"mzYRaTvs9Dj4eHZGV36nSC8yLiK2JBw1f");
  644. NSLog(@"Or7BxuR9CySPHd1IlYqhzGXv");
  645. NSLog(@"h0gnpWu4SxfFMAwzJ1mVb2oLvjBXY7");
  646. NSLog(@"1n4iIcVgXCSpyxYowsv7Kb");
  647. NSLog(@"iFhcbDULY0qTKzAZIe6lN1Md3ajPHtQwJf");
  648. NSLog(@"szCvhPEaAWQeDkpSGIfjxNZ");
  649. NSLog(@"zOmMAXq0ki8gFfwVLI6D4R");
  650. NSLog(@"jwkn6FOHmgQAGlqhESLUWxX21Pp");
  651. NSLog(@"rNPWlOcT3HKUDko14JMfFw7YtnBL6vXVGZpdz5aS");
  652. NSLog(@"rw8yEAftFd6T0x");
  653. NSLog(@"Bl9y7HaeJPbSun1538tWACIGog");
  654. }
  655. -(void)aEQu7:(UIBarButtonItem*) aEQu7 ah6MD:(UIRegion*) ah6MD alNF1r:(UIControlEvents*) alNF1r aVLdMBg:(UIScreen*) aVLdMBg a7D3ft:(UIControlEvents*) a7D3ft a39Uos:(UIMenuItem*) a39Uos aU25dTg6KE:(UIActivity*) aU25dTg6KE arfJ5jb:(UIActivity*) arfJ5jb aCxANprmX:(UIControl*) aCxANprmX aHWDFinZPwQ:(UIVisualEffectView*) aHWDFinZPwQ anmIyOsvLJ:(UIUserInterfaceIdiom*) anmIyOsvLJ axDojHpW0:(UIVisualEffectView*) axDojHpW0 aKh3q:(UISearchBar*) aKh3q awuJZ:(UIEdgeInsets*) awuJZ adZBXviIAc:(UIColor*) adZBXviIAc afW1p7:(UIColor*) afW1p7 aVLUsnWY:(UIFont*) aVLUsnWY am51N:(UIColor*) am51N {
  656. NSLog(@"1XOp7sR0fIwEQlmBTxgDtZ5");
  657. NSLog(@"7QzCiEAyuTFH6am");
  658. NSLog(@"tFa0JqKbsQnTOvBydPH6VXp5UmR4Zk7fG");
  659. NSLog(@"pPsWQFcDCqfhU2rRKBo0tNLzYmIS");
  660. NSLog(@"Yh8RtsNSWaEIyxC6Buq1F7mrVenPDZJd94g5OUX");
  661. NSLog(@"QS7z4Nndhose0PU3VqrbGmiak5lJMcv");
  662. NSLog(@"CcHTF9V1NxQ4y5brilKgLs");
  663. NSLog(@"52dhkamxPJtWnYb0vgzN");
  664. NSLog(@"Bv52PVdNDjcATusSt87HMJwyeRlha");
  665. NSLog(@"XlCib9YF17mP2");
  666. NSLog(@"Cl5JoKSQGMfX");
  667. NSLog(@"6JiYHbDZ9edEFGxCSQ3");
  668. NSLog(@"BwDubgERtO71HedGjTCrZkL");
  669. NSLog(@"t73bjPIkueq45BgdlrvVG9TiCUzKhsx");
  670. NSLog(@"37xMlKFSa2Y59dNAheCcf");
  671. NSLog(@"fA1NhPSgwvqRnIaEU");
  672. }
  673. -(void)ai6CRd3mojv:(UIViewController*) ai6CRd3mojv alZaBAxH59Y:(UIView*) alZaBAxH59Y a5nLIgc:(UIScreen*) a5nLIgc aae18prz:(UIBarButtonItem*) aae18prz aBiSy1eMmGj:(UIDevice*) aBiSy1eMmGj axk1KI7WQb4:(UIRegion*) axk1KI7WQb4 avq2XDT6:(UIMotionEffect*) avq2XDT6 a5e10F:(UIRegion*) a5e10F aFPXe5E2qW:(UIEvent*) aFPXe5E2qW aE7h4H:(UIScreen*) aE7h4H {
  674. NSLog(@"vaNuhkC8JtV9");
  675. NSLog(@"xR2bKyJqdfChWFBD");
  676. NSLog(@"EKsrIuGQmwMaZBVN95Dck7v4hJ0U6ne28f");
  677. NSLog(@"PwuySZJe2ihavrz3I8F5mKLYdUx0O7bpMtk");
  678. NSLog(@"SDwUHpkIExlZnXqOcsGFio1WmdTaMe");
  679. NSLog(@"QOpl0SjZtF2WKgyow134aPuTIh");
  680. NSLog(@"SQLsCaK0lgmE8tR9en7");
  681. NSLog(@"NdLnTzZ9pVGvFRfasMkmqHw");
  682. NSLog(@"D2w5AnpVoR");
  683. NSLog(@"Dtn17UpTksPgwduYzZFvyKRi5XLQcHJWB");
  684. NSLog(@"6QWqZksOhyp4wa7Xe3JlcNmitdG8TbEYUKf");
  685. NSLog(@"TuEeG0vVsjLQWPt34hdZ6H");
  686. NSLog(@"YuLlWgC0IyfV4mRM7wzp26kUZOAhDGoJTn8FS3Q");
  687. NSLog(@"6U5LwiG2xTAnykfW1K0m3HlF7MJ");
  688. NSLog(@"BUNRjGekOzrhlYu4JK5SEXoAd2FxD3Qf");
  689. }
  690. -(void)aQgwRlOWvJh:(UIRegion*) aQgwRlOWvJh a07OmbS:(UIInputView*) a07OmbS aIlRkV3nowv:(UILabel*) aIlRkV3nowv aOZC6EKi7w3:(UIDocument*) aOZC6EKi7w3 ak9fs:(UIActivity*) ak9fs aiOPzYd:(UIFontWeight*) aiOPzYd aWxLRu4m9:(UIImageView*) aWxLRu4m9 atRWnZmjNLF:(UIWindow*) atRWnZmjNLF aEbrRifW:(UIControlEvents*) aEbrRifW ao2gu:(UIImageView*) ao2gu aO9NPI7d:(UIButton*) aO9NPI7d aTXjCuWZ4Vk:(UIDocument*) aTXjCuWZ4Vk a0Yad:(UIEdgeInsets*) a0Yad aX7ScarpDv:(UIApplication*) aX7ScarpDv a4rut:(UIEvent*) a4rut aUZlAvkPqV:(UIEdgeInsets*) aUZlAvkPqV apsMaw:(UIButton*) apsMaw an2BXzdo:(UIControlEvents*) an2BXzdo aEwOei1:(UIFontWeight*) aEwOei1 {
  691. NSLog(@"2nK9gysJamM5k4");
  692. NSLog(@"fFo8LxTsDJB0AZlwUdPYShr");
  693. NSLog(@"A5yZ8n0GdMxWtreECJ2XlKRLk");
  694. NSLog(@"UVM2CLsbp0N");
  695. NSLog(@"iMTK2qjYo5rOzkQyJLPf");
  696. NSLog(@"oCkBJVgeT3XvjmUElu1cbZAs90OGD87PxqQ");
  697. NSLog(@"IjpeWDcat7w4vCbPUdBsGEA9uXzHf83Z06LlVrYS");
  698. NSLog(@"CAM3PUVXGyJRhEz");
  699. NSLog(@"hY5372rZWpltcRnkC0HQSsbKDqmN");
  700. NSLog(@"ZjrX1W9t0lsuTxbB");
  701. }
  702. -(void)ageizfK2:(UIMotionEffect*) ageizfK2 axidKp:(UIBarButtonItem*) axidKp a0yBbjRWE:(UIViewController*) a0yBbjRWE alE4k9zSbaq:(UIMenuItem*) alE4k9zSbaq aD2uXTnQ:(UIBarButtonItem*) aD2uXTnQ adukNVw:(UIRegion*) adukNVw a8uQDC2N:(UIBarButtonItem*) a8uQDC2N ad6YUND0o:(UIMenuItem*) ad6YUND0o aIFP0N:(UIControl*) aIFP0N ap5ChRJ:(UIViewController*) ap5ChRJ aDREqhyLbFJ:(UILabel*) aDREqhyLbFJ aoZzn:(UIDevice*) aoZzn aueXl:(UIButton*) aueXl amsid:(UIControlEvents*) amsid av3Fy:(UIView*) av3Fy {
  703. NSLog(@"2HVeqLWJQyanr");
  704. NSLog(@"AkGvS4prbPazHDZWXJ");
  705. NSLog(@"dk05gCQXUFfVMvnRzL1");
  706. NSLog(@"xTgMsEYf7h19Vnq0ZjwIoi3cXtu8v");
  707. NSLog(@"16lEonVbjHL");
  708. NSLog(@"EXjwoUsdGPODuY9m4H5");
  709. NSLog(@"ba5qXDpS6tsYlkBxhJ0ZfUIAPyu3R");
  710. NSLog(@"BNDH8UTv4ZefP3cCKxm0XjizW1trauqEg92QwL");
  711. NSLog(@"j9soEzLdPq");
  712. NSLog(@"7sniq1tYv8XufChcH3FGQ9Saek");
  713. NSLog(@"9ZcveX8ORAxkFztU5SgKaBV");
  714. NSLog(@"9w2mBtcy5oAz1iS7nTUhCjWEv");
  715. NSLog(@"FQhtEze1SDWZKJOGg3C5rv8H0BuxYImpdV");
  716. NSLog(@"Gx3sT5FZ1KHoUANnQ6iCr4qX7pd9");
  717. }
  718. -(void)a3la4CDz:(UIRegion*) a3la4CDz aLqv8I9:(UIBarButtonItem*) aLqv8I9 axcM1orX:(UIActivity*) axcM1orX aVYFfu:(UISwitch*) aVYFfu aPh68TjS:(UIBarButtonItem*) aPh68TjS aFXPaY6SLO:(UIMenuItem*) aFXPaY6SLO {
  719. NSLog(@"YoydEbK0aH4e7X1pPvwigS9luRhMF6VZq3");
  720. NSLog(@"rjCLo5D7Ye9EB2cWsRM");
  721. NSLog(@"blP4hzEKxR23YNowFUsLMcXfmQDSVJAH6v1g");
  722. NSLog(@"5xTC98GzlX0ukJP4jciBmow2QEpyfZMq1Y");
  723. NSLog(@"MQdCDyhrYs1W0vpJgcmIzjwTi47aHZ9Gkb");
  724. NSLog(@"sQu7VxTK2fL6gvA");
  725. NSLog(@"VtM3vGDP0YxyZKgL9iWlbUnA6as8d5IfrjwupF");
  726. NSLog(@"weZJK7BtuCygsmTc9P");
  727. NSLog(@"UmIuCraicMwJBgsz");
  728. NSLog(@"BjOKhe5MvPl1arRd7VcxpJ0Q6iZqXCGsN29");
  729. }
  730. -(void)aehR8:(UIDocument*) aehR8 alTZO8n7aW:(UIKeyCommand*) alTZO8n7aW aJhLW:(UIFontWeight*) aJhLW ahoPmLT:(UIControl*) ahoPmLT ayxsLV:(UILabel*) ayxsLV azCvDabs:(UIImageView*) azCvDabs {
  731. NSLog(@"B6qtdospjbVMwQfPDyvG0UIhKa");
  732. NSLog(@"f8SJaFek27b1nDpiW9BUd3NOqyCLPcQVzrxHZAEG");
  733. NSLog(@"6fld3ExkoWySbgjXL4JCBpNM9queQDOZ5a1isI");
  734. NSLog(@"fXxtuWTqVzEcp0m2vhYeQHDMrwBAgCa4RFNIb");
  735. NSLog(@"9EJyuB2CIvlaSRpPX87ezKF0G3LOqDow5ZfA");
  736. NSLog(@"yrHDwxElGIYe2bqL3CAPBh");
  737. NSLog(@"VzH92maythKWj64GX");
  738. NSLog(@"XsHj35LyIZ");
  739. NSLog(@"uirXya4AJmC2c63W5jFINvHOPRhkezZ1nGpdKVQ9");
  740. NSLog(@"ain9LkUN1thxeEPqJcYSRCv3HO64lGXb2ow");
  741. NSLog(@"5c3lAJDiHeWULXz9NgMPFCskqxTb0v7");
  742. NSLog(@"tKIQMPxCnDdqog");
  743. NSLog(@"ao1nevMEZh");
  744. }
  745. -(void)aH5Qw:(UIEdgeInsets*) aH5Qw aMtmk4Ljx:(UIBezierPath*) aMtmk4Ljx aFfv8G:(UIColor*) aFfv8G aw0XWmIeSJd:(UIControl*) aw0XWmIeSJd as0ocQe8v7:(UIKeyCommand*) as0ocQe8v7 aqNutbLWj:(UIRegion*) aqNutbLWj a0o1Y:(UIRegion*) a0o1Y ahMGzfdPWT:(UIAlertView*) ahMGzfdPWT arbJTojBzG:(UIView*) arbJTojBzG {
  746. NSLog(@"xu8WDqVmZSANPXLoFBhnJk013");
  747. NSLog(@"yOCJogFqWtVhQc");
  748. NSLog(@"VDMNjEcPZQpwbg03tzUJ");
  749. NSLog(@"3Oai9fZ5AkU2FqogBw");
  750. NSLog(@"HcKNteIGT4bUWFSQ");
  751. NSLog(@"Mwhxt78ZzvBLa4OyQAcK9qiE5YgIU6TfFRSXC2p");
  752. NSLog(@"tcbzLgrHVWj6Nopy51DAGXT3YxushUE4");
  753. NSLog(@"qcw9ilVMEQZm");
  754. NSLog(@"B2lrkfvChZi5agVLmb6S1s");
  755. NSLog(@"uWqt1YsB2b");
  756. NSLog(@"Cz47r35yPfkaHWQLMpFmuUlZDvg0BEKOx1T");
  757. NSLog(@"e56IVZtdHWbGurCFM8YSpwOvX2qgals7xof");
  758. NSLog(@"1aTHefWQK24OAiL6k30V");
  759. NSLog(@"4t3AQdBMXsLy5o6E2wZGDHgu0PWvU");
  760. NSLog(@"3a9z1RBrKOs");
  761. NSLog(@"6XpTdoVeNREnuc80mByhsYa14");
  762. NSLog(@"kCaNTEywf783KQIjlUcX9");
  763. }
  764. -(void)aTAiP6Yc:(UIBarButtonItem*) aTAiP6Yc a7xJdIA:(UIControl*) a7xJdIA aje0S:(UIColor*) aje0S aZEwzyjQWTu:(UIActivity*) aZEwzyjQWTu aIAXL0fCP9g:(UIColor*) aIAXL0fCP9g av8LqbhYG:(UIApplication*) av8LqbhYG abNRrIn:(UIMenuItem*) abNRrIn aF7NIp:(UICollectionView*) aF7NIp af7oKMpqO:(UIUserInterfaceIdiom*) af7oKMpqO aVHSxoCrM:(UIControl*) aVHSxoCrM aJ3SnZcku:(UIUserInterfaceIdiom*) aJ3SnZcku aEjB48vLPli:(UITableView*) aEjB48vLPli aA15C9u4poL:(UIDevice*) aA15C9u4poL {
  765. NSLog(@"f5OWMqziwyZPr806pS293VY4RauAxI1gkcLTFGUs");
  766. NSLog(@"r5Mgque70FjsXdypNbVcUHwAS");
  767. NSLog(@"oxQW8V5Z7Hy2CuErsv");
  768. NSLog(@"0ZlKW7JhwskGcqvoUEO4Cx239Fdyz8Su6jAat1IQ");
  769. NSLog(@"Urk1aJn7gcNT65QMiEHbvRF");
  770. NSLog(@"Lxb0RwvZdV61tepBK5mqJ3O8AYuQPDfF");
  771. NSLog(@"4UhCW8INS7i0PAmjtbaprGZeMTRLuswx");
  772. NSLog(@"qHlVOnLJxyYt8h1zow7uNKaiFSdAcPTGjXeZf");
  773. NSLog(@"ebJCKirMVcP5dpSUtDskWN2n89XZLuAOox");
  774. NSLog(@"QpzhZDSmJgoueF2LECkPvrd9iWaqBVsX7cNHnyOw");
  775. NSLog(@"hv6cgdxsboDRBTUaGm");
  776. NSLog(@"WbAgpI4vFHDxrKdhTzR3YZ7POENjlBkfa");
  777. NSLog(@"jmVldRzDC4F5S9yBcbLkIfOgXswepWQ");
  778. NSLog(@"9mKajbBNkwP3YvMAoExdn");
  779. NSLog(@"gXIqGhojZr");
  780. }
  781. -(void)anAaS:(UIViewController*) anAaS aHWXQ4:(UIEdgeInsets*) aHWXQ4 aZqxbgpJLm:(UISwitch*) aZqxbgpJLm a1IKNdQUP:(UIImageView*) a1IKNdQUP acETZh4SAy:(UIBarButtonItem*) acETZh4SAy a5PZQTSIKX:(UITableView*) a5PZQTSIKX au9CJ02Rlr:(UIWindow*) au9CJ02Rlr aQMtusUF2w7:(UIUserInterfaceIdiom*) aQMtusUF2w7 atfbRD:(UIEdgeInsets*) atfbRD aep3sRSQU:(UIBezierPath*) aep3sRSQU aQp17v9sCn6:(UIBarButtonItem*) aQp17v9sCn6 aB92xsW4e:(UIInputView*) aB92xsW4e atp3xmhfXU:(UIBezierPath*) atp3xmhfXU aei5OCBXv:(UIBarButtonItem*) aei5OCBXv aMEolK7C:(UIEdgeInsets*) aMEolK7C {
  782. NSLog(@"fLcSr5m7X8dzJMHqi0PoG4R");
  783. NSLog(@"Y6pTbHa2ifQdeqoPBEtLcz5D1h3gOA");
  784. NSLog(@"kz98QV1nrW7jwbRda0KTHqx");
  785. NSLog(@"A082ekCcXYzmaZiH9");
  786. NSLog(@"ZRkHSFJyr9C3GMN2LtQIzAhed7OUpg8Yi0P");
  787. NSLog(@"h8tBsRndMfZOPTbqAmCXly57xH");
  788. NSLog(@"3ImYv9e7CUFaAMH5bKRPkjBE");
  789. NSLog(@"VnRF1B8dmqlt9XD3G");
  790. NSLog(@"EJwjnGucXBbp");
  791. NSLog(@"7mzIOxWVonBUv6");
  792. NSLog(@"Jdqe4nA7iO");
  793. NSLog(@"9jOPkJNU8mTFqdAClcBHXVZL4Yysp302eaxoGnf");
  794. NSLog(@"FiO02aqdgJECGP6");
  795. NSLog(@"6qUpi3RSdyMl4OLWVAB");
  796. NSLog(@"ALiYWlK3QM2");
  797. NSLog(@"qANhlTS17X24ywWd0gFRxtuGe");
  798. NSLog(@"9n4YiOKUJTwfXNBPgdR");
  799. }
  800. -(void)aZOnoDwS5Wh:(UIInputView*) aZOnoDwS5Wh arMc1R2Wm:(UICollectionView*) arMc1R2Wm aLMX3ehG61:(UIEdgeInsets*) aLMX3ehG61 a3CMq:(UIBezierPath*) a3CMq avI17YRzs:(UIApplication*) avI17YRzs {
  801. NSLog(@"7IC34ZpgG2AVN8nKWidbMlsj1khUvEPmu6S09");
  802. NSLog(@"Rgl1yQJGT9vU0Ajfw4ZqYpL3bN");
  803. NSLog(@"xfRlS54er6NoHKwuDaXpt0");
  804. NSLog(@"HBY4MnZNWGqwIruQDv8Fo1U6");
  805. NSLog(@"u2wND3b59hy0zaqHmQelopkS");
  806. NSLog(@"6r1AnuyCTaxZ3Xcf4Hkz");
  807. NSLog(@"xT2JCSs91PKE35tIlNfOoq4yjacZmXGuhBL");
  808. NSLog(@"uV7ndS2k8iyYjt");
  809. NSLog(@"yewgsd3qEtH1FK48GYbUoi7pW");
  810. NSLog(@"87LOXhpFtJ15VRNyojAgS");
  811. NSLog(@"KqW3XgP2ylufvTiJarhAZeQbENCR8k5V");
  812. NSLog(@"DHa63lhvGA0FpNQ2");
  813. }
  814. -(void)af9lkwOp:(UIImage*) af9lkwOp axd6lBas0gM:(UIActivity*) axd6lBas0gM aFvB9KRI:(UIFontWeight*) aFvB9KRI a79kK:(UIControl*) a79kK axo4yJX2v3:(UIControl*) axo4yJX2v3 amTxeX:(UIBarButtonItem*) amTxeX a2CkJ:(UIBarButtonItem*) a2CkJ aJB4pWNfm:(UIWindow*) aJB4pWNfm au5r7l:(UIWindow*) au5r7l aosA0yf6:(UIEvent*) aosA0yf6 aLBYTEfo:(UIButton*) aLBYTEfo a0LCaI6j:(UIFontWeight*) a0LCaI6j aZaT9rE14Cq:(UISearchBar*) aZaT9rE14Cq atKTcm1E:(UIKeyCommand*) atKTcm1E amb4kFVz:(UIApplication*) amb4kFVz ahKX2IQi:(UIInputView*) ahKX2IQi {
  815. NSLog(@"g5V14UKHR3A");
  816. NSLog(@"CGkKtNgv5rWZfi74Snh");
  817. NSLog(@"k5mL01B8uJGErWldXqyODajKcNAVsnhT7iQ");
  818. NSLog(@"diUowCeXPZ9gbAzsG0QxaT5pHE");
  819. NSLog(@"ceZCRmEo4b759LHg6DjBOSn3vXiVPu0G2w1F");
  820. NSLog(@"0JGxDOqzFfrsZ");
  821. NSLog(@"JtUNg8HpbG4zXC");
  822. NSLog(@"NprZnOGTXwH2e9VfcoDALSM4qYgyQ5axKJ");
  823. NSLog(@"yUWVOwaCltJA4oRSnxIpk568zQZGYE9rXLuPdH");
  824. NSLog(@"vVn149BRbQNeMwcsaT0xAikZjp8So");
  825. NSLog(@"zTL9InweJr7oMBHpxfkvK2Es15y");
  826. NSLog(@"hjQrIneo402fKEVwkl");
  827. NSLog(@"TrkRJ3QOPqDwle5yuptEfSI1AWVij");
  828. }
  829. -(void)aMc08:(UICollectionView*) aMc08 aO2CFPHRaV:(UIFont*) aO2CFPHRaV as5OiaTWxuU:(UIButton*) as5OiaTWxuU aSOIoFL:(UIImageView*) aSOIoFL advtuzhiHA:(UIActivity*) advtuzhiHA aXPOCKZ9zsH:(UIBezierPath*) aXPOCKZ9zsH aFJEwTQsb7:(UIMenuItem*) aFJEwTQsb7 {
  830. NSLog(@"c3GlX9mK4feTN2zIMjwWBFnPt5xh7SCg0Oq");
  831. NSLog(@"5jzm6davA7Cr");
  832. NSLog(@"Ab25HGaotKDfxlPWQcdS");
  833. NSLog(@"tPRYLBlfCvi8Hkq1zEuNdWepOosX6VJgjxc");
  834. NSLog(@"JmhlnfHvWp7zuDOi6B4CM");
  835. NSLog(@"8It39TdegSREsv2iY1JO67QyczL");
  836. NSLog(@"xzZYOaiHVmE84bULvtPp3hfeBn");
  837. NSLog(@"syxJ8kCauQWTpMY6bwIFhof7NKLgSXtcq");
  838. NSLog(@"7vhL426pCUWFmX5YwPlKqegbEMzVOTR13SNGIQHn");
  839. NSLog(@"K2I5qRi7bQ");
  840. NSLog(@"VjkZ3lTBSDiQKA0JGU");
  841. NSLog(@"sG2Xlc7KrmYwo04ENUSpyf1");
  842. NSLog(@"40hm9G1quSxCJXW");
  843. NSLog(@"L02BEk8FlWv5CmQ");
  844. NSLog(@"8p0IqkA6FVOmL");
  845. NSLog(@"8UNE2hYqJdQpsw9xkORVMcWbf46eiGXC7Pjzut");
  846. NSLog(@"N4ec6CPAuhdr7JWnlTwkIa3tv0XQ");
  847. NSLog(@"3H9KcyumYQMF");
  848. }
  849. @end