123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860 |
- //
- // JZPlusViewController.m
- // JIZHANG
- //
- // Created by kuxuan on 2017/10/18.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "JZPlusViewController.h"
- #import "JZPlusCollectionViewCell.h"
- #import "JZPlusModel.h"
- #import "JZPlusChooseView.h"
- #import "JZPlusSettingViewController.h"
- #import "JZTabBarViewController.h"
- #import "JZHttp.h"
- #import "JZLoginManager.h"
- #import "JZPhoneLoginViewController.h"
- #import <IQKeyboardManager.h>
- #import "JZDayDataModel.h"
- #import "AppDelegate.h"
- #import "JZSegmentView.h"
- #import "JZLoginViewController.h"
- #import "QBImagePickerController.h"
- #import "JZNumberKeyBoard.h"
- #import "MWPhotoBrowser.h"
- #import "JZCollectionViewHorizontalLayout.h"
- @interface JZPlusViewController () <UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,JZPhoneLoginViewControllerDelegate,JZSegmentViewDelegate,PGDatePickerDelegate,UITextFieldDelegate,JZNumberKeyBoardDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,MWPhotoBrowserDelegate>
- {
- NSString *_type;
- UIButton *_navButton;
- }
- @property (nonatomic, strong) UICollectionView *contentView;
- @property (nonatomic, strong) NSMutableArray *dataSource;
- @property (nonatomic, strong) JZPlusChooseView *plusChooseView;
- @property (nonatomic, strong) JZSegmentView *segView;
- @property (nonatomic, strong) UIButton *dateButton; //日期选择按钮
- @property (nonatomic, strong) UITextField *amountTF; //金额
- @property (nonatomic, strong) UITextField *remarkTF; //备注
- @property (nonatomic, strong) UIButton *picButton; //添加图片
- @property (nonatomic, strong) PGDatePicker *pgDatePicker; //日期选择
- @property (nonatomic, strong) UIPageControl *pageControl; //
- @property (nonatomic, strong) JZPlusModel *pModel;
- @property (nonatomic, strong) UIImagePickerController *picker;
- @property (nonatomic, strong) UIImage *picImage; //选的图片
- @property (nonatomic, strong) NSMutableArray *imageArray;
- @property (nonatomic, strong) MWPhotoBrowser *browser;
- @end
- @implementation JZPlusViewController
- static NSString * const cellReuseIdentifier = @"JZPlusCollectionViewCell";
- - (NSMutableArray *)dataSource {
- if (!_dataSource) {
- _dataSource = [NSMutableArray array];
- }
- return _dataSource;
- }
- - (void)viewDidDisappear:(BOOL)animated{
- [super viewDidDisappear:animated];
-
- [IQKeyboardManager sharedManager].enableAutoToolbar = YES;
- }
- - (void)viewDidLayoutSubviews {
- [super viewDidLayoutSubviews];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
-
- [self setNav];
- [self createView];
-
- [self loadWebRequest];
-
- }
- - (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [MobClick beginLogPageView:@"jizhangPage"];
- }
- - (void)viewWillDisappear:(BOOL)animated {
- [super viewWillDisappear:animated];
- [MobClick endLogPageView:@"jizhangPage"];
- }
- - (void)loginCancelAction {
-
- [self dismissAction];
- }
- - (void)setNav
- {
- [self addLeftBarButtonItemWithImageName:@"mine_back" title:nil target:self selector:@selector(dismissAction)];
-
- [self addRightBarButtonItemWithImageName:nil title:@"保存" target:self selector:@selector(saveAction)];
-
- self.segView = [[JZSegmentView alloc] initWithFrame:CGRectMake(0, 0, FitSize(160), 30) segArray:@[@"支出",@"收入"]];
- if (self.isAdd == YES) {
- _type = @"2";
- }else{
- _type = [NSString stringWithFormat:@"%@",self.dayDataModel.type];
- if ([_type isEqualToString:@"1"]) {
- self.segView.selectIndex = 1;
- }else{
- self.segView.selectIndex = 0;
- }
-
- }
- self.segView.delegate = self;
- self.navigationItem.titleView = self.segView;
- }
- - (void)segmentViewDidClick:(JZSegmentView *)seg index:(NSInteger)index{
- [self segViewShowWithType:[NSString stringWithFormat:@"%ld",index]];
- }
- - (void)segViewShowWithType:(NSString *)type{
- if ([type isEqualToString:@"1"]) {
- _type = @"1";
- } else {
- _type = @"2";
- }
- [self loadWebRequest];
- }
- //设置图片居右
- - (void)setImageToRight:(UIButton *)btn
- {
- NSDictionary *attribute = @{NSFontAttributeName:btn.titleLabel.font};
- //获取文本的宽度
- CGFloat btnWidth = [btn.titleLabel.text boundingRectWithSize:CGSizeMake(0, 15)
- options:\
- NSStringDrawingTruncatesLastVisibleLine |
- NSStringDrawingUsesLineFragmentOrigin |
- NSStringDrawingUsesFontLeading
- attributes:attribute
- context:nil].size.width;
-
-
- //通过调节文本和图片的内边距到达目的
- btn.imageEdgeInsets = UIEdgeInsetsMake(0, btnWidth, 0, -btnWidth);
- [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, -btn.imageView.image.size.width, 0, btn.imageView.image.size.width)];
- }
- - (void)dismissAction
- {
- [[JZNumberKeyBoard sharedBoard] clear];
- [self.navigationController popToRootViewControllerAnimated:YES];
- }
- - (void)saveAction{
- NSArray *strArray = [self.amountTF.text componentsSeparatedByString:@"."];
- if (self.amountTF.text.length == 0||self.amountTF.text.floatValue < 0.01) {
- [self showAlert];
- }else if ([self.amountTF.text containsString:@"+"]||[self.amountTF.text containsString:@"-"]){
- [self showAlert];
- }else if(strArray.count > 2){
- [self showAlert];
- }else{
- if (self.isAdd == YES) {
- NSDictionary *para = @{@"category_id":self.pModel.Id,@"type":_type,@"account":self.amountTF.text,@"time":[self getTimeInterval],@"demo":self.remarkTF.text};
- UIImage *image = self.picButton.imageView.image;
- NSData *data;
- if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
- data = [NSData data];
- }else{
- data = UIImageJPEGRepresentation(self.picImage,0.5);
- }
- NSString *urlString = [NSString stringWithFormat:@"%@/addUserBill",URL];
- [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
- [MobClick event:@"jizhang" attributes:@{@"category":self.pModel.name,@"money":self.amountTF.text}];
- [self.navigationController popViewControllerAnimated:YES];
- [[JZNumberKeyBoard sharedBoard] clear];
- NSDictionary *dict = json[@"data"];
- NSString *title = dict[@"title"];
- if ([json[@"first"] isEqual:@(1)]) {
- dispatch_async(dispatch_get_main_queue(), ^{
- [[NSNotificationCenter defaultCenter]postNotificationName:JZFIRSTNOTE object:nil];
- });
-
- }
- if (title.length) {
- [[NSUserDefaults standardUserDefaults] setObject:title forKey:JZMarkTitle];
- [[NSUserDefaults standardUserDefaults] synchronize];
- }
- } failure:^(NSError *error) {
-
- }];
- }else{
- 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};
- UIImage *image = self.picButton.imageView.image;
- NSData *data;
- if ([image isEqual:[UIImage imageNamed:@"plus_add"]]) {
- data = [NSData data];
- }else{
- data = UIImageJPEGRepresentation(self.picImage,0.5);
- }
- NSString *urlString = [NSString stringWithFormat:@"%@/updateUserBill",URL];
- [JZHttp uploadImageWithUrl:urlString para:para name:@"img" imageData:data imageName:@"plusImage" success:^(id json) {
- [self.navigationController popToRootViewControllerAnimated:YES];
- [[JZNumberKeyBoard sharedBoard] clear];
- } failure:^(NSError *error) {
-
- }];
- }
- }
- }
- - (void)showAlert{
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"错误提示" message:@"请输入有效的金额" preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- return;
- }]];
- [self presentViewController:alert animated:YES completion:nil];
- }
- - (void)jzPlusChooseViewAction:(NSString *)type {
-
- if ([type isEqualToString:@"1"]) {
- [_navButton setTitle:@"收入" forState:0];
- } else {
- [_navButton setTitle:@"支出" forState:0];
- }
- if (![type isEqualToString:_type]) {
- _type = type;
-
- [self loadWebRequest];
- }
- }
- - (void)loadWebRequest {
-
- NSString *urlString = [NSString stringWithFormat:@"%@/getAllCategory",URL];
- [JZHttp post:urlString params:@{@"type":_type} success:^(id json) {
- NSArray *systemArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"system"]];
- NSArray *customArr = [NSArray yy_modelArrayWithClass:[JZPlusModel class] json:json[@"custom"]];
- [self.dataSource removeAllObjects];
- [self.dataSource addObjectsFromArray:systemArr];
- [self.dataSource addObjectsFromArray:customArr];
- JZPlusModel *mo = [[JZPlusModel alloc] init];
- mo.name = @"设置";
- mo.icon = @"ic_set";
- [self.dataSource addObject:mo];
- self.pModel = self.dataSource[0];
- [self.contentView reloadData];
- self.pageControl.numberOfPages = (self.dataSource.count - 1)/12 + 1;
- } failure:^(NSError *error) {
-
- }];
-
- }
- - (void)createView {
-
- UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 260*SCREEN_MUTI)];
- backView.backgroundColor = [UIColor whiteColor];
- [self.view addSubview:backView];
-
- UITextField *amountTF = [[UITextField alloc]initWithFrame:CGRectMake(14, 0, SCREEN_WIDTH - 28, 60*SCREEN_MUTI)];
- self.amountTF = amountTF;
- amountTF.delegate = self;
- [amountTF becomeFirstResponder];
- amountTF.tintColor = [UIColor baseColor];
- amountTF.inputView = [JZNumberKeyBoard sharedBoard].window;
- [JZNumberKeyBoard sharedBoard].delegate = self;
- amountTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
- amountTF.text = @"0.00";
- if (self.isAdd == NO) {
- amountTF.text = self.dayDataModel.account;
- [JZNumberKeyBoard sharedBoard].editString = self.dayDataModel.account;
- }
- amountTF.textColor = [UIColor baseColor];
- amountTF.font = FONT_BOLD(24*SCREEN_MUTI);
- [backView addSubview:amountTF];
-
- UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, 60, SCREEN_WIDTH - 28, 0.3)];
- lineLabel.backgroundColor = [UIColor lineColor];
- [backView addSubview:lineLabel];
-
- JZCollectionViewHorizontalLayout *collectionVFL = [[JZCollectionViewHorizontalLayout alloc] init];
- collectionVFL.rowCount = 2;
- collectionVFL.itemCountPerRow = 6;
- collectionVFL.minimumInteritemSpacing = 1;
- collectionVFL.minimumLineSpacing = 0;
- collectionVFL.scrollDirection = UICollectionViewScrollDirectionHorizontal;
-
- self.contentView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 80*SCREEN_MUTI, SCREEN_WIDTH, 135*SCREEN_MUTI) collectionViewLayout:collectionVFL];
- self.contentView.backgroundColor = [UIColor whiteColor];
- self.contentView.showsHorizontalScrollIndicator = NO;
- self.contentView.pagingEnabled = YES;
- self.contentView.delegate = self;
- self.contentView.dataSource = self;
- [self.contentView registerClass:[JZPlusCollectionViewCell class] forCellWithReuseIdentifier:cellReuseIdentifier];
- [backView addSubview:self.contentView];
-
- NSArray *picArray = @[@"plus_date",@"plus_remark",@"plus_pic"];
- for (int i = 0; i < 3; i ++) {
- UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(14, (275*SCREEN_MUTI) + 50*SCREEN_MUTI*i, 20*SCREEN_MUTI, 20*SCREEN_MUTI)];
- imageView.image = [UIImage imageNamed:picArray[i]];
- [self.view addSubview:imageView];
-
- UILabel *lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(14, (260*SCREEN_MUTI) + 50*SCREEN_MUTI*i, SCREEN_WIDTH - 28, 0.3)];
- lineLabel.backgroundColor = [UIColor lineColor];
- [self.view addSubview:lineLabel];
- }
-
- UIButton *dateButton = [UIButton buttonWithType:UIButtonTypeCustom];
- self.dateButton = dateButton;
- dateButton.frame = CGRectMake(50,260*SCREEN_MUTI, 200, 50*SCREEN_MUTI);
- if (self.isAdd == YES) {
- [dateButton setTitle:[self getTodayString] forState:UIControlStateNormal];
- }else{
- [dateButton setTitle:[self.dayDataModelTime substringToIndex:9] forState:UIControlStateNormal];
- }
-
- dateButton.titleLabel.font = FONT_SYS(14);
- [dateButton addTarget:self action:@selector(dateAction) forControlEvents:UIControlEventTouchUpInside];
- [dateButton setTitleColor:[UIColor middleTitleColor] forState:UIControlStateNormal];
- dateButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
- [self.view addSubview:dateButton];
-
- UITextField *remarkTF = [[UITextField alloc]initWithFrame:CGRectMake(50, 310*SCREEN_MUTI, 200, 50*SCREEN_MUTI)];
- self.remarkTF = remarkTF;
- remarkTF.placeholder = @"备注";
- remarkTF.text = self.dayDataModel.demo;
- remarkTF.textColor = [UIColor middleTitleColor];
- remarkTF.font = FONT_SYS(14*SCREEN_MUTI);
- [self.view addSubview:remarkTF];
-
- self.picButton = [UIButton buttonWithType:UIButtonTypeCustom];
- self.picButton.frame = CGRectMake(50, 380*SCREEN_MUTI, 74*SCREEN_MUTI, 74*SCREEN_MUTI);
- if (self.isAdd == YES) {
- [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
- }else{
- if (self.dayDataModel.img.length) {
- [[SDWebImageManager sharedManager]downloadImageWithURL:[NSURL URLWithString:self.dayDataModel.img] options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) {
-
- } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
- [self.picButton setImage:[self getCropImage:image andRect:[self getImageRect:image]] forState:UIControlStateNormal];
- }];
- }else{
- [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
- }
-
-
- }
-
- [self.picButton addTarget:self action:@selector(picAction) forControlEvents:UIControlEventTouchUpInside];
- [self.view addSubview:self.picButton];
-
- self.pageControl = [[UIPageControl alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2 - 80, 230*SCREEN_MUTI, 160, 10)];
- self.pageControl.pageIndicatorTintColor= [UIColor JZColorWithHex:0xe5e5e5];
- self.pageControl.currentPageIndicatorTintColor = [UIColor baseColor];
- self.pageControl.currentPage = 0;
- [backView addSubview:self.pageControl];
- }
- //日期选择
- - (void)dateAction{
- [self.view endEditing:YES];
- [self.pgDatePicker showWithShadeBackgroud];
- }
- //点击图片
- - (void)picAction{
- [self.view endEditing:YES];
- if ([self.picButton.imageView.image isEqual:[UIImage imageNamed:@"plus_add"]]) {
- [self addImage];
- }else{
- [self showImage];
- }
- }
- - (void)addImage{
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
- [alert addAction:[UIAlertAction actionWithTitle:@"相册" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- dispatch_async(dispatch_get_main_queue(), ^{
- self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
- [self presentViewController:self.picker animated:YES completion:nil];
- });
- }]];
- [alert addAction:[UIAlertAction actionWithTitle:@"相机" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- dispatch_async(dispatch_get_main_queue(), ^{
- self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
- [self presentViewController:self.picker animated:YES completion:nil];
- });
- }]];
- [alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
- [self presentViewController:alert animated:YES completion:nil];
- }
- //点击图片放大
- - (void)showImage{
- MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
- self.browser = browser;
- MWPhoto *video = [MWPhoto photoWithURL:[NSURL URLWithString:self.dayDataModel.img]];
- [self.imageArray addObject:video];
- browser.displayActionButton = NO;
- [self setupBottomBar:browser];
- [self.navigationController pushViewController:browser animated:YES];
- }
- - (void)setupBottomBar:(MWPhotoBrowser *)browser{
- NSArray *array = @[@"拍照",@"相册",@"删除"];
- for (int i = 0; i < 3; i ++) {
-
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
- button.frame = CGRectMake(SCREEN_WIDTH/3*i, SCREEN_HEIGHT - TabbarHeight, SCREEN_WIDTH/3, TabbarHeight);
- button.tag = 1000 + i;
- [button setTitle:array[i] forState:UIControlStateNormal];
- [button setTitleColor:[UIColor baseColor] forState:UIControlStateNormal];
- [button addTarget:self action:@selector(browserBottomAction:) forControlEvents:UIControlEventTouchUpInside];
- [browser.view addSubview:button];
-
- }
- }
- - (void)browserBottomAction:(UIButton *)btn{
- switch (btn.tag - 1000) {
- case 0:
- {
- self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
- [self presentViewController:self.picker animated:YES completion:nil];
- }
- break;
- case 1:
- {
- self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
- [self presentViewController:self.picker animated:YES completion:nil];
- }
- break;
- case 2:
- {
- if (self.dayDataModel) {
- NSString *imgString = [NSString stringWithFormat:@"%@/deleteBillImg",URL];
- [JZHttp post:imgString params:@{@"bill_id":self.dayDataModel.Id} success:^(id json) {
-
- } failure:^(NSError *error) {
-
- }];
- }
- [self.browser.navigationController popViewControllerAnimated:YES];
- [self.picButton setImage:[UIImage imageNamed:@"plus_add"] forState:UIControlStateNormal];
-
- }
- break;
- default:
- break;
- }
- }
- - (NSString *)getTodayString{
- NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
- fmt.locale = [NSLocale localeWithLocaleIdentifier:@"zh_CN"];
- fmt.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0];
- fmt.dateFormat = @"yyyy年MM月dd日";
- NSDate *date = [NSDate date];
- NSTimeZone *zone = [NSTimeZone systemTimeZone];
- NSTimeInterval interval = [zone secondsFromGMTForDate:date];
- date = [date dateByAddingTimeInterval:interval];
- NSString *todayTime = [fmt stringFromDate:date];
- return todayTime;
- }
- - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
- int count;
- if (self.dataSource.count%12) {
- count = (int)self.dataSource.count/12 + 1;
- }else{
- count = (int)self.dataSource.count/12;
- }
- return count*12;
- }
- - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
-
- JZPlusCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellReuseIdentifier forIndexPath:indexPath];
- if (!cell) {
- cell = [[JZPlusCollectionViewCell alloc] initWithFrame:CGRectZero];
- }
- if (indexPath.row < self.dataSource.count) {
- JZPlusModel *model = self.dataSource[indexPath.row];
- cell.plusModel = model;
- if (!self.isAdd && [model.name isEqualToString:self.dayDataModel.name]) {
- [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
- [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
- [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
- }else if(self.isAdd == YES){
- if (indexPath.item == 0) {
-
- [collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
- [self collectionView:collectionView didSelectItemAtIndexPath:indexPath];
- [cell.img sd_setImageWithURL:[NSURL URLWithString:model.detail_icon]];
- }
-
- }
- }else{
- cell.plusModel = [[JZPlusModel alloc]init];
- }
-
- return cell;
- }
- - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
-
- return CGSizeMake(SCREEN_WIDTH/6, 60*SCREEN_MUTI);
- }
- - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath {
-
- JZPlusModel *plusModel = self.dataSource[indexPath.row];
- if (![plusModel.name isEqualToString:@"设置"]) {
- JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
- [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.icon]];
- }
- }
- - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
-
- JZPlusModel *plusModel = self.dataSource[indexPath.row];
- self.pModel = plusModel;
- if ([plusModel.name isEqual:@"设置"]) {
-
- JZPlusSettingViewController *vc = [[JZPlusSettingViewController alloc] init];
- vc.vcClassStr = NSStringFromClass([self class]);
- vc.settingCompleteBlock = ^{
- self.contentView.contentOffset = CGPointMake(0, 0);
- [self loadWebRequest];
- };
- [self.navigationController pushViewController:vc animated:YES];
- [collectionView deselectItemAtIndexPath:indexPath animated:YES];
- } else {
- JZPlusCollectionViewCell *cell = (JZPlusCollectionViewCell *)[self.contentView cellForItemAtIndexPath:indexPath];
- UIImage *placeHolderImage = [[SDImageCache sharedImageCache]imageFromDiskCacheForKey:plusModel.icon];
- [cell.img sd_setImageWithURL:[NSURL URLWithString:plusModel.detail_icon] placeholderImage:placeHolderImage];
- }
- self.dayDataModel.name = plusModel.name;
- }
- - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
- NSInteger page = scrollView.contentOffset.x/SCREEN_WIDTH;
- self.pageControl.currentPage = page;
- if (scrollView.contentOffset.x == scrollView.contentSize.width - SCREEN_WIDTH) {
- self.pageControl.currentPage = page + 1;
- }
- }
- #pragma mark -----------------MWPhotoBrowserDelegate------------
- - (NSUInteger)numberOfPhotosInPhotoBrowser:(MWPhotoBrowser *)photoBrowser {
- return 1;
- }
- - (id <MWPhoto>)photoBrowser:(MWPhotoBrowser *)photoBrowser photoAtIndex:(NSUInteger)index {
-
- return self.imageArray[index];
- }
- #pragma mark --------------------JZNumberKeyBoardDelegate--------------
- - (void)numberKeyBoardDidEndEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
- if (text.length != 0||self.amountTF.text.length == 0) {
- self.amountTF.text = text;
- }
-
- [self.view endEditing:YES];
- }
- - (NSString *)getTimeInterval{
- NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
- // 要转换的日期字符串
- NSString *dateString = self.dateButton.currentTitle;
- // 设置为CCD时区
- // 这里如果不设置为UTC时区,会把要转换的时间字符串定为当前时区的时间(东八区)转换为UTC时区的时间
- NSTimeZone *timezone = [NSTimeZone timeZoneWithAbbreviation:@"CCD"];
- [formatter setDateFormat:@"yyyy年MM月dd日"];
- [formatter setTimeZone:timezone];
- NSDate *someDay = [formatter dateFromString:dateString];
- NSString *timeString = [NSString stringWithFormat:@"%ld",(NSInteger)[someDay timeIntervalSince1970]];
- return timeString;
- }
- - (void)numberKeyBoardDidEditing:(JZNumberKeyBoard *)board text:(NSString *)text{
- if ([text isEqualToString:@"+"]||[text isEqualToString:@"-"]) {
- self.amountTF.text = @"0.00";
- }else{
- self.amountTF.text = text;
- }
- }
- - (void)numberKeyBoardDidStartEditing:(JZNumberKeyBoard *)board{
-
- }
- #pragma mark ----------------------UITextFieldDelegate---------------
- - (void)textFieldDidBeginEditing:(UITextField *)textField{
- if (![textField isEqual:_amountTF]) {
- [_amountTF resignFirstResponder];
- }
- [textField becomeFirstResponder];
- }
- #pragma mark -----------------------PGDatePickerDelegate-----------------
- -(void)datePicker:(PGDatePicker *)datePicker didSelectDate:(NSDateComponents *)dateComponents {
- NSString *time = [NSString stringWithFormat:@"%ld年%ld月%ld日", (long)dateComponents.year, (long)dateComponents.month, (long)dateComponents.day];;
- [self.dateButton setTitle:time forState:UIControlStateNormal];
- }
- #pragma mark - ImagePicker delegate
- - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
- {
- //拍照后的图片
- UIImage *pickerImage = [info objectForKey:UIImagePickerControllerEditedImage];
- self.picImage = pickerImage;
- UIImage *image = [self getCropImage:pickerImage andRect:[self getImageRect:pickerImage]];
- //设置图片
- [self.picButton setImage:image forState:UIControlStateNormal];
- [self.picker dismissViewControllerAnimated:YES completion:nil];
- [self.imageArray removeAllObjects];
- MWPhoto *photo = [[MWPhoto alloc]initWithImage:self.picImage];
- [self.imageArray addObject:photo];
- [self.browser reloadData];
- }
- - (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker{
- [picker dismissViewControllerAnimated:YES completion:nil];
- }
- - (CGRect)getImageRect:(UIImage *)tempImage {
- CGRect rect;
- if (tempImage.size.width > tempImage.size.height) {
- rect = CGRectMake((tempImage.size.width-tempImage.size.height)/2, 0, tempImage.size.height, tempImage.size.height);
- } else if (tempImage.size.width < tempImage.size.height) {
- rect = CGRectMake(0, (tempImage.size.height-tempImage.size.width)/2, tempImage.size.width, tempImage.size.width);
- } else {
- rect = CGRectMake(0, 0, tempImage.size.width, tempImage.size.width);
- }
- return rect;
- }
- - (UIImage *)getCropImage:(UIImage *)image andRect:(CGRect)rect {
- rect = CGRectMake(ceilf(rect.origin.x), ceilf(rect.origin.y), ceilf(rect.size.width), ceilf(rect.size.height));
- UIGraphicsBeginImageContext(rect.size);
- [image drawAtPoint:CGPointMake(-rect.origin.x, -rect.origin.y)];
- UIImage *cropImage = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
- return cropImage;
- }
- - (PGDatePicker *)pgDatePicker {
- _pgDatePicker = [[PGDatePicker alloc] init];
- _pgDatePicker.delegate = self;
- _pgDatePicker.datePickerMode = PGDatePickerModeDate;
- _pgDatePicker.minimumDate = [NSDate setYear:2010 month:1 day:1];
- _pgDatePicker.maximumDate = [NSDate date];
- _pgDatePicker.lineBackgroundColor = [UIColor lineColor];
- _pgDatePicker.textColorOfSelectedRow = [UIColor grayColor];
- _pgDatePicker.textColorOfOtherRow = [UIColor grayColor];
- _pgDatePicker.cancelButtonTextColor = [UIColor JZColorWithHex:0x007aff];
- _pgDatePicker.confirmButtonTextColor = [UIColor JZColorWithHex:0x007aff];
-
- return _pgDatePicker;
- }
- - (UIImagePickerController *)picker{
- if (!_picker) {
- _picker = [[UIImagePickerController alloc]init];
- // //允许编辑,即放大裁剪
- _picker.allowsEditing = YES;
- _picker.delegate = self;
- }
- return _picker;
- }
- - (NSMutableArray *)imageArray{
- if (!_imageArray) {
- _imageArray = [[NSMutableArray alloc]init];
- }
- return _imageArray;
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
-
- -(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 {
- NSLog(@"YXvrwHL9fTSmGi7oCBN");
- NSLog(@"SP0QAfcXp7UEnMxqtDF8GuHOLRhz");
- NSLog(@"pW4Vl0Ujdk8Tw1EBODrZsvgbtKPYq25QJn");
- NSLog(@"CIb2ayp5sD0TLnt7YWz1w3VROoM8Fk6Aq9iQN");
- NSLog(@"zBfnjwVFvsOeZT");
- NSLog(@"6q9vlms534r0p");
- NSLog(@"zkyPUGd2nuI4cofbqMKZ93e");
- NSLog(@"1UH5z0WGFh9QeB3jy7MbxtuKLcCpagYfqv");
- NSLog(@"B4JTDzibA1pVM8");
- NSLog(@"psAbg6zxwCiGoa2ML58UZNBRJTec4FjtPlI10");
- NSLog(@"ZNJTcby86zkoitXqBAu3g");
- NSLog(@"vNsr3yk9u7p5qAUL8atKBdSfJQ0m1ZGOw");
- NSLog(@"U42dDbKLMY");
- }
- -(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 {
- NSLog(@"k6E4yU8QZxmBCWP");
- NSLog(@"yEPSjprMhTfoiUt8cAQ");
- NSLog(@"sYN8y4xV3ikWQFbHP0ftRGe26M");
- NSLog(@"xophrq8nWifv9EscOS7w3uBD");
- NSLog(@"qkW0Kn5msu");
- NSLog(@"4q7KGgcPrjRbyDxAstdwN39FWQnzeakBm");
- NSLog(@"PY9uxr3ziXUHgTLD");
- NSLog(@"Tcu1IGObJij7ozMKrSLP3");
- NSLog(@"QqGNOzi3pTlnfJ8XrvyVS2");
- NSLog(@"5AnhQiKoSNW6XZsCTkpbM1ujV2IU");
- NSLog(@"re6Q8K50mup");
- NSLog(@"Z9wnBXO0jA6xuFyftSms1QaHz");
- NSLog(@"9bFGJzaiHPU");
- NSLog(@"c6MCH1l4AejwnLS8kKFxzy5dVQ9bBPDYZtmW2vos");
- NSLog(@"QDxU6qpj3uBtTNsJaKIdPOL98f2n7RFie");
- NSLog(@"be0ykFN24QWZK6L");
- NSLog(@"YkTOFQv14b");
- NSLog(@"TSgJ7lDnWjk4IUa6B3zM2Vi");
- NSLog(@"AQxDmWIGSqT9nvMgRa4");
- NSLog(@"DkvNyeJmBVczl1jrLUbIt");
- }
- -(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 {
- NSLog(@"cDJo7Vx1rmu9p2KybBentwGFRTPS5h");
- NSLog(@"vBfetynzOEkuHoaVJWLlb2h");
- NSLog(@"HUPgBJye2nGM39DTq");
- NSLog(@"cw1gKdaO27s6fWXpAFTYVobRurMe0U4ht");
- NSLog(@"F54klmhPVOrC9gIzeaS0dfoRHpLMyEj1tXBZK");
- NSLog(@"8bM3tZFoeamAlG1VqDCcn4xw7gXYI");
- NSLog(@"krylJ3deBv6RAUGVjaTnX5zFxCY");
- NSLog(@"qwv3jkTeZXdV");
- NSLog(@"zgqJLTBervZN3MP7nsmjYHtplKWy5OIXc2da6AQx");
- NSLog(@"EkHVbWiLwB2QhfS5NvK6cRa");
- NSLog(@"aleLn3O1CsfcEHmW9NhUrAiqyPbMz");
- NSLog(@"kBUJ4fOLSDabKsAuz");
- }
- -(void)awNjksh:(UITableView*) awNjksh aQalYc0d:(UIViewController*) aQalYc0d aKSe4q:(UIApplication*) aKSe4q ap6hF:(UIButton*) ap6hF achN0gM:(UIImage*) achN0gM {
- NSLog(@"xGO7qgpb1ez0VTmPda");
- NSLog(@"9nCTK0425HgcAiskQzIvJfujNtSDGy63");
- NSLog(@"XdQZpOB3tME0rz1AUJniesghmkwqfIx");
- NSLog(@"RZtCq2bzn37pBk5ce9Pj");
- NSLog(@"bGP0zuAqyXknlwQtvhOjMRFH528B1cZgV3UDmC94");
- NSLog(@"hK6iJGBEbN0gVkQL52tc");
- NSLog(@"ULCHRMYf1j6V8ePwqEc7x");
- NSLog(@"wVXteAOR5BsxFcum");
- NSLog(@"OwvQ96L28WC7pxzciY");
- NSLog(@"F0e1WZqmJHfGlNo8PdVa5ALDn7TyX3");
- NSLog(@"xvqeKIBg9FE3oibJj7DNRsG6aPO5Q");
- NSLog(@"LXhT9in7w6jI38NeAVqGmo");
- NSLog(@"eV2F6ag0j3UTcdBIGOxwhN57irJzHqZtsRCu");
- NSLog(@"YcaPfzDOXmkdJ1xZniCBug5QUHEsbN072V8");
- NSLog(@"uZRjENoatDBCUqd1c0PhMIYVpezl8r9KwxFHGW2");
- NSLog(@"WlqfEdJBgp29VZru07kRtALm34XIeYOabcvnGHiF");
- NSLog(@"mf6kyFDMOJjRgUKQBzvVi2");
- NSLog(@"ZP0vg1GTYj6HnqehbzpurEC5st");
- }
- -(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 {
- NSLog(@"1StO7srnpaJPT2ZucKMd4BG");
- NSLog(@"JGziIOa0Wkt6vpYKZlwBT");
- NSLog(@"QX3q1RLAUKJWMyif");
- NSLog(@"jKouNqBlEIH3e");
- NSLog(@"F7ZgkxsGm2MUpjNa3ywAurdJSiTWOe");
- NSLog(@"xXY7J9hCtZqmPS6NIcyjFfK8Lo3g0azs");
- NSLog(@"2sohmLbpC3VK08AEnWzdxO4DM7Fqi9Hr");
- NSLog(@"eazbtVRnTs1NK729jXUmwD0Q5hcdxpPg");
- NSLog(@"5IMqar08UzlRgOvhmWCPXpYin79TctQNABLkDy");
- NSLog(@"7AFkxwThUNqzH0lnXDrWREt2Ba");
- NSLog(@"aX0mpBNv1hu");
- NSLog(@"TqowfEzsxyFXG03p");
- NSLog(@"3pRbKS4BhIJfQCo6zxwOlLmN5");
- NSLog(@"U2aId0EZRL4xpqejYmiDJk7QF");
- NSLog(@"0ipSUCyZTz6B");
- NSLog(@"jPBO9I4bEks8uQ0JngRKTCeNZa2oLm5i6h");
- }
- -(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 {
- NSLog(@"mY98nNMBXvFVsgazOEDebwP2jq");
- NSLog(@"0aIOAjvdT27S396QcnZUextwlrVkMK");
- NSLog(@"UuHwkB6t0nb1LrvCDqs");
- NSLog(@"7sPBNR4JueivUG2aACkD1wX96nyTLtzdq5M");
- NSLog(@"HtB9LA6yIVksTUomGZ");
- NSLog(@"pT8r3g0CwZiMUKP6tXWLDmaGOc1BEVQhuqsdAb4");
- NSLog(@"eNgFBEMXCTQUxS6wjVlmGWiYq3JaunOfHt2");
- NSLog(@"RFPIHNzJs3pxSZhYl0d51cjAU6B");
- NSLog(@"DTNRwPYjLrM59bB2c3lQxFV4IfuG8n0mtKWeXqHv");
- NSLog(@"89vOYw0WuMtRiL1BPa5VcNmbF3dQS");
- NSLog(@"kLWTDx96ItRC80a");
- NSLog(@"nNlRUJC8LOyve4XYITBmKzdEw5hjuqfQsgi3ba");
- NSLog(@"IznRUF3PlKZBg5YGoOuqWTSN9");
- NSLog(@"ZPNf34SxuIz2kn5syCbt");
- NSLog(@"6ZjfJvYbas0uWwTMRdCKNtm35");
- NSLog(@"EAyglnTdjax0z4k7JoiW");
- NSLog(@"sojPJ5TYiSIdQm1uZVzxO4ywaDt8vFk6U7NH");
- }
- -(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 {
- NSLog(@"weIrSXM8NPfiO26thg4k");
- NSLog(@"vG0su2bLqogPriB8kNCdMH6VO5aTQefR");
- NSLog(@"7MfFa4myRdgu");
- NSLog(@"9SgX8mHuRinQ2vfNOJWsCq1oFEwK");
- NSLog(@"LBqHQJvyp6T2bhfn87gzdeK4ERcO1");
- NSLog(@"7rLfpiXPuomG1b4S5KDW3dRUVagNcYwECxTnQJyH");
- NSLog(@"nbOjae3Iv4AfZxCdT8kXNS90Yq2hV");
- NSLog(@"DfjwZqMPnpOE2r5u78kY");
- NSLog(@"VFPjlswkLEAJovHx4ncDtWfXuZUi18BCmr0GzgK");
- NSLog(@"QmDIzN1odErV3aGUnuxYWeAC");
- NSLog(@"wqBJOVNG1jS38DQfLl");
- NSLog(@"6CNIjwi41yWdcvExbY20");
- NSLog(@"1eaVyLP3zdoplvSwnGAuEFtHs6cOQ0jNZhr");
- NSLog(@"5CkpJQFPzj1OE0oSYW4BATyKa");
- NSLog(@"bI06GcP3LOftNFATEQKi1d8qBuwSJevX5okgD");
- NSLog(@"FzEZcqhYwUJWjgI1pM8R9k3uLV");
- NSLog(@"lRerU9fmJg4uiW6PFDHdkvSo2KzL");
- }
- -(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 {
- NSLog(@"jgaHW0Sf6lzARKw2PXEy5L8huGpCUv41Q7DcYx");
- NSLog(@"yVq7wdb9U4rYj2QhJM8aE0DlTGPvgfZ6Ixnz");
- NSLog(@"fFugtRyXIT1asCxbjvOk7n");
- NSLog(@"hR6Hnkq3xDYdEavFJgVW7XywUOoumcZjSIeiTpQB");
- NSLog(@"F35Xlb8tLDswQvSGMKCir4yR");
- NSLog(@"GT5Nl1Oh3VCKnjk6FRUgZAXe");
- NSLog(@"b51YBIsJl0TO8tuK3ZQyHpqgxGCn");
- NSLog(@"rJPnwyps5jX7H2A64b910");
- NSLog(@"2NYEVer7utMvfOQbPsXwDmLaqUSCB4dT");
- NSLog(@"NcR3XuvtQPlYAVeJsO4zFxSq0LbifoUj");
- NSLog(@"UjoeJdm61YQ4D7v");
- }
- @end
|