Commit 6a7b81e9 authored by Sandy's avatar Sandy

检查项 上传图片

parent c97a34da
...@@ -936,7 +936,7 @@ ...@@ -936,7 +936,7 @@
ORGANIZATIONNAME = JianjiYuan; ORGANIZATIONNAME = JianjiYuan;
TargetAttributes = { TargetAttributes = {
09CD6F931A2C46B300A581BA = { 09CD6F931A2C46B300A581BA = {
DevelopmentTeam = W54V2VB863; DevelopmentTeam = 4WRSWKXL27;
}; };
09CD6FAE1A2C46B300A581BA = { 09CD6FAE1A2C46B300A581BA = {
DevelopmentTeam = C237GFQJK4; DevelopmentTeam = C237GFQJK4;
...@@ -1273,8 +1273,8 @@ ...@@ -1273,8 +1273,8 @@
baseConfigurationReference = 9DF2AE748F48D7C21F3300FE /* Pods.debug.xcconfig */; baseConfigurationReference = 9DF2AE748F48D7C21F3300FE /* Pods.debug.xcconfig */;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_IDENTITY = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: jie zhang (9V9955H2BK)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Macalline/Macalline-Prefix.pch"; GCC_PREFIX_HEADER = "Macalline/Macalline-Prefix.pch";
...@@ -1284,7 +1284,7 @@ ...@@ -1284,7 +1284,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.macalline; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.macalline;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "1167b943-9098-47a9-b05a-c0dd6682858f"; PROVISIONING_PROFILE = "1167b943-9098-47a9-b05a-c0dd6682858f";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; "PROVISIONING_PROFILE[sdk=iphoneos*]" = "1167b943-9098-47a9-b05a-c0dd6682858f";
SDKROOT = iphoneos; SDKROOT = iphoneos;
VALID_ARCHS = "arm64 armv7"; VALID_ARCHS = "arm64 armv7";
WRAPPER_EXTENSION = app; WRAPPER_EXTENSION = app;
...@@ -1296,7 +1296,7 @@ ...@@ -1296,7 +1296,7 @@
baseConfigurationReference = 416BF2437F5E4BB7D7F8A2AF /* Pods.release.xcconfig */; baseConfigurationReference = 416BF2437F5E4BB7D7F8A2AF /* Pods.release.xcconfig */;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = ""; CODE_SIGN_IDENTITY = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
...@@ -1307,7 +1307,7 @@ ...@@ -1307,7 +1307,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.macalline; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.macalline;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "1167b943-9098-47a9-b05a-c0dd6682858f"; PROVISIONING_PROFILE = "1167b943-9098-47a9-b05a-c0dd6682858f";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; "PROVISIONING_PROFILE[sdk=iphoneos*]" = "1167b943-9098-47a9-b05a-c0dd6682858f";
SDKROOT = iphoneos; SDKROOT = iphoneos;
VALID_ARCHS = "arm64 armv7"; VALID_ARCHS = "arm64 armv7";
WRAPPER_EXTENSION = app; WRAPPER_EXTENSION = app;
......
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
default: default:
manager.responseSerializer = [AFJSONResponseSerializer serializer]; manager.responseSerializer = [AFJSONResponseSerializer serializer];
} }
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
NSString *legalStrURL = [strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *legalStrURL = [strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
DLog(@"legalStrURL %@\n params %@", legalStrURL, params); DLog(@"legalStrURL %@\n params %@", legalStrURL, params);
...@@ -169,7 +170,7 @@ ...@@ -169,7 +170,7 @@
} error:nil]; } error:nil];
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperationManager manager] HTTPRequestOperationWithRequest:request success:^(AFHTTPRequestOperation *operation, id responseObject){ AFHTTPRequestOperation *operation = [manager HTTPRequestOperationWithRequest:request success:^(AFHTTPRequestOperation *operation, id responseObject){
[self operationDidSucceed:operation result:responseObject]; [self operationDidSucceed:operation result:responseObject];
} failure:^(AFHTTPRequestOperation *operation, NSError *error) { } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
[self operationDidFailed:operation result:error]; [self operationDidFailed:operation result:error];
...@@ -179,6 +180,7 @@ ...@@ -179,6 +180,7 @@
[self.operationQueue addOperation:operation]; [self.operationQueue addOperation:operation];
[self.operationQueue setSuspended:YES]; [self.operationQueue setSuspended:YES];
[operation pause]; [operation pause];
return operation; return operation;
} }
......
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
_scrollVContainer.showsHorizontalScrollIndicator = NO; _scrollVContainer.showsHorizontalScrollIndicator = NO;
_scrollVContainer.showsVerticalScrollIndicator = YES; _scrollVContainer.showsVerticalScrollIndicator = YES;
_scrollVContainer.backgroundColor = [UIColor clearColor]; _scrollVContainer.backgroundColor = [UIColor whiteColor];
[self.view addSubview:_scrollVContainer]; [self.view addSubview:_scrollVContainer];
} }
return _scrollVContainer; return _scrollVContainer;
......
...@@ -65,13 +65,14 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -65,13 +65,14 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
[self.navigationController navbarLeftItemCustomized:@[btnBack] onwer:self.navigationItem]; [self.navigationController navbarLeftItemCustomized:@[btnBack] onwer:self.navigationItem];
[self.collectionView autoPinEdgesToSuperviewEdgesWithInsets:UIEdgeInsetsMake(0, 0, 0, 0)]; [self.collectionView autoPinEdgesToSuperviewEdgesWithInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[self.collectionView registerClass:[ImageBrowserCell class] forCellWithReuseIdentifier:@"ImageBrowserCell"];
[self reloadImageDatas]; [self reloadImageDatas];
if (self.photoSource == ImageBrowserPhotoSourceAsset) if (self.photoSource == ImageBrowserPhotoSourceAsset)
{ {
[self loadAssets]; [self loadAssets];
} }
// self.view.backgroundColor = [UIColor blueColor];
} }
...@@ -114,9 +115,9 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -114,9 +115,9 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
cellForItemAtIndexPath:(NSIndexPath *)indexPath cellForItemAtIndexPath:(NSIndexPath *)indexPath
{ {
ImageBrowserCell *myCell = [collectionView ImageBrowserCell *myCell = [collectionView
dequeueReusableCellWithReuseIdentifier:@"ImageBrowserCell" dequeueReusableCellWithReuseIdentifier:@"ImageBrowserCell"
forIndexPath:indexPath]; forIndexPath:indexPath];
NSLog(@"%p", myCell);
ImageBrowserObj *obj = _arrContents[indexPath.row]; ImageBrowserObj *obj = _arrContents[indexPath.row];
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapProfileImage:)]; UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapProfileImage:)];
singleTap.numberOfTapsRequired = 1; singleTap.numberOfTapsRequired = 1;
...@@ -142,8 +143,8 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -142,8 +143,8 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
} }
obj.isDeletable=YES; obj.isDeletable=YES;
} }
//if ((self.editing && obj.isDeletable) || (obj.isDeletable && obj.isShaking)) //if ((self.editing && obj.isDeletable) || (obj.isDeletable && obj.isShaking))
if ((self.editing && obj.isDeletable) ) if ((self.editing && obj.isDeletable) )
{ {
[myCell beginShake]; [myCell beginShake];
obj.isShaking = YES; obj.isShaking = YES;
...@@ -160,7 +161,7 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -160,7 +161,7 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
myCell.imageVPhoto.tag = [indexPath row]; myCell.imageVPhoto.tag = [indexPath row];
myCell.btnDelete.tag = indexPath.row; myCell.btnDelete.tag = indexPath.row;
myCell.btnDelete.hidden = !(obj.isDeletable && obj.isShaking); myCell.btnDelete.hidden = !(obj.isDeletable && obj.isShaking);
...@@ -170,7 +171,7 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -170,7 +171,7 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
if (obj.imageSavedData) { if (obj.imageSavedData) {
myCell.imageVPhoto.image = [UIImage imageWithData:obj.imageSavedData scale:0.3]; myCell.imageVPhoto.image = [UIImage imageWithData:obj.imageSavedData scale:0.3];
}else { }else {
switch (obj.sourceType) { switch (obj.sourceType) {
case ImageSourceTypeBundle: case ImageSourceTypeBundle:
...@@ -193,10 +194,10 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im ...@@ -193,10 +194,10 @@ UICollectionViewDataSource, UICollectionViewDelegate, MWPhotoBrowserDelegate, Im
default: default:
break; break;
} }
} }
return myCell; return myCell;
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
@property (nonatomic,strong) UILabel *lblpicNum; @property (nonatomic,strong) UILabel *lblpicNum;
@end @end
@interface TaskCheckViewController () < ImageBrowserDelegate ,UIGestureRecognizerDelegate> @interface TaskCheckViewController () < ImageBrowserDelegate ,UIGestureRecognizerDelegate, BRNetworkMgrDelegate>
{ {
UIView *viewExample; UIView *viewExample;
NSLayoutConstraint *layoutCtScrollBottm; NSLayoutConstraint *layoutCtScrollBottm;
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
viewExample.backgroundColor = [UIColor whiteColor]; viewExample.backgroundColor = [UIColor whiteColor];
[viewExample addSubview:self.vcImageBExample.view]; [viewExample addSubview:self.vcImageBExample.view];
// self.vcImageBExample.collectionView.backgroundColor = [UIColor redColor];
[self addChildViewController:_vcImageBExample]; [self addChildViewController:_vcImageBExample];
[self.scrollVContainer addSubview:viewExample]; [self.scrollVContainer addSubview:viewExample];
......
...@@ -214,13 +214,13 @@ UIAlertViewDelegate, UITextFieldDelegate, UIActionSheetDelegate > ...@@ -214,13 +214,13 @@ UIAlertViewDelegate, UITextFieldDelegate, UIActionSheetDelegate >
} }
- (void)setViewLayoutConstraint - (void)setViewLayoutConstraint
{ {
[self.viewDesc autoPinEdgesToSuperviewEdgesWithInsets:UIEdgeInsetsMake(0, 0, 0, 0) excludingEdge:ALEdgeBottom]; // [self.viewDesc autoPinEdgesToSuperviewEdgesWithInsets:UIEdgeInsetsMake(0, 0, 0, 0) excludingEdge:ALEdgeBottom];
[self.viewDesc autoSetDimension:ALDimensionHeight toSize:0]; // [self.viewDesc autoSetDimension:ALDimensionHeight toSize:0];
[self.viewCheck autoPinEdgeToSuperviewEdge:ALEdgeLeft]; [self.viewCheck autoPinEdgeToSuperviewEdge:ALEdgeLeft];
[self.viewCheck autoPinEdgeToSuperviewEdge:ALEdgeRight]; [self.viewCheck autoPinEdgeToSuperviewEdge:ALEdgeRight];
[self.viewCheck autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:self.viewDesc]; [self.viewCheck autoPinEdgeToSuperviewEdge:ALEdgeTop];
[self.viewCheck autoSetDimension:ALDimensionHeight toSize:150]; [self.viewCheck autoSetDimension:ALDimensionHeight toSize:150];
...@@ -417,7 +417,13 @@ UIAlertViewDelegate, UITextFieldDelegate, UIActionSheetDelegate > ...@@ -417,7 +417,13 @@ UIAlertViewDelegate, UITextFieldDelegate, UIActionSheetDelegate >
continue; continue;
} }
if (imageObj.imageSavedData) { if (imageObj.imageSavedData) {
[imageObj.imageSavedData writeToFile:imageObj.imagePath atomically:YES]; //增加对路径是否存在的判断,不存在则创建
NSFileManager *fileManager = [NSFileManager defaultManager];
if (![fileManager fileExistsAtPath:kImageCachePath]) {
[fileManager createDirectoryAtPath:kImageCachePath withIntermediateDirectories:YES attributes:nil error:nil];
}
BOOL isWriteSuccess = [imageObj.imageSavedData writeToFile:imageObj.imagePath atomically:YES];
NSLog(@"%d", isWriteSuccess);
} }
NSString *imagePath = [NSString stringWithFormat:@"%@/%@", kImageCachePath, imageObj.imageName]; NSString *imagePath = [NSString stringWithFormat:@"%@/%@", kImageCachePath, imageObj.imageName];
[arrImages addObject:@{@"id":imageObj.imageId, @"type":type, @"checkPointId":self.checkPointRecordId?:@"", [arrImages addObject:@{@"id":imageObj.imageId, @"type":type, @"checkPointId":self.checkPointRecordId?:@"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment