2.5.0提交
This commit is contained in:
parent
c867369f1a
commit
b2b7f54959
|
@ -5659,7 +5659,7 @@
|
||||||
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
|
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
|
||||||
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
|
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.3.1;
|
MARKETING_VERSION = 2.5.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
|
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
@ -5730,7 +5730,7 @@
|
||||||
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
|
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
|
||||||
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
|
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.3.1;
|
MARKETING_VERSION = 2.5.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
|
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
|
Binary file not shown.
|
@ -36,5 +36,21 @@
|
||||||
landmarkType = "7">
|
landmarkType = "7">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "C1B02E23-FCFA-41B2-9F01-B43A3CE74F34"
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "ProductApp/ProductMain/引导/view/StartGNView.m"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "343"
|
||||||
|
endingLineNumber = "343"
|
||||||
|
landmarkName = "-tiyanAction"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
</Breakpoints>
|
</Breakpoints>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "组 43272@2x.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "组 43272@3x.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -50,7 +50,7 @@
|
||||||
DTDefaultTextColor:self.color,
|
DTDefaultTextColor:self.color,
|
||||||
DTDefaultFontSize:@(self.font.pointSize),
|
DTDefaultFontSize:@(self.font.pointSize),
|
||||||
DTDefaultFontFamily:@"Helvetica Neue",
|
DTDefaultFontFamily:@"Helvetica Neue",
|
||||||
DTDefaultFontName:@"HelveticaNeue-Light"
|
DTDefaultFontName:@"HelveticaNeue"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return _DTCoreText_options;
|
return _DTCoreText_options;
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
if(!_style)
|
if(!_style)
|
||||||
{
|
{
|
||||||
NSMutableParagraphStyle *style = [NSMutableParagraphStyle new];
|
NSMutableParagraphStyle *style = [NSMutableParagraphStyle new];
|
||||||
style.lineSpacing = 5;
|
style.lineSpacing = 5.2;
|
||||||
style.lineBreakMode = NSLineBreakByWordWrapping;
|
style.lineBreakMode = NSLineBreakByWordWrapping;
|
||||||
style.alignment = NSTextAlignmentLeft;
|
style.alignment = NSTextAlignmentLeft;
|
||||||
_style = style;
|
_style = style;
|
||||||
|
|
|
@ -772,7 +772,14 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
ID:(NSString *)ID
|
ID:(NSString *)ID
|
||||||
Callback:(completeModeBlock)callback;
|
Callback:(completeModeBlock)callback;
|
||||||
|
|
||||||
|
/*
|
||||||
|
删除保存记录
|
||||||
|
/api/batch/correct/save
|
||||||
|
id
|
||||||
|
*/
|
||||||
|
+ (void)requestBatchCorrectDelData:(UIView *)view
|
||||||
|
ID:(NSString *)ID
|
||||||
|
Callback:(completeModeBlock)callback;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -2381,5 +2381,40 @@
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
删除保存记录
|
||||||
|
/api/batch/correct/save
|
||||||
|
id
|
||||||
|
*/
|
||||||
|
+ (void)requestBatchCorrectDelData:(UIView *)view
|
||||||
|
ID:(NSString *)ID
|
||||||
|
Callback:(completeModeBlock)callback
|
||||||
|
{
|
||||||
|
NSMutableDictionary *dicQuery = [NSMutableDictionary new];
|
||||||
|
[dicQuery setObject:[Tools isStringnil:ID] forKey:@"id"];
|
||||||
|
|
||||||
|
NSMutableDictionary *dicHeader = [NSMutableDictionary new];
|
||||||
|
|
||||||
|
NSMutableDictionary *dicpush = [NSMutableDictionary new];
|
||||||
|
|
||||||
|
[YSAPIClient requestWithRequestBaseUrl:BaseUrl Type:4 url:@"api/batch/correct/save" paraments:dicpush Headers:dicHeader Query:dicQuery completeBlock:^(id _Nullable responseObject, NSError * _Nullable error) {
|
||||||
|
BOOL state = NO;
|
||||||
|
NSString *describle = @"";
|
||||||
|
if (responseObject==nil) {
|
||||||
|
describle = @"网络错误";
|
||||||
|
BaseModel *model = [BaseModel new];
|
||||||
|
model.message =describle;
|
||||||
|
callback(state,model,describle);
|
||||||
|
}else{
|
||||||
|
NSDictionary *dicAll=responseObject;
|
||||||
|
describle = dicAll[@"message"];
|
||||||
|
if ([[NSString stringWithFormat:@"%@",dicAll[@"code"]] intValue] == 0) {
|
||||||
|
state = YES;
|
||||||
|
}
|
||||||
|
callback(state,[BaseModel yy_modelWithJSON:dicAll],describle);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -59,15 +59,16 @@
|
||||||
[self.navigationController setNavigationBarHidden:YES animated:NO];
|
[self.navigationController setNavigationBarHidden:YES animated:NO];
|
||||||
|
|
||||||
///获取所有字体
|
///获取所有字体
|
||||||
// NSArray* familys = [UIFont familyNames];
|
NSArray* familys = [UIFont familyNames];
|
||||||
// for (int i = 0; i<[familys count]; i++) {
|
for (int i = 0; i<[familys count]; i++) {
|
||||||
// NSString* family = [familys objectAtIndex:i];
|
NSString* family = [familys objectAtIndex:i];
|
||||||
// NSLog(@"\r\n\r\nFontfamily:%@\r\n=====",family);
|
NSLog(@"\r\n\r\nFontfamily:%@\r\n=====",family);
|
||||||
// NSArray* fonts = [UIFont fontNamesForFamilyName:family];
|
NSArray* fonts = [UIFont fontNamesForFamilyName:family];
|
||||||
// for (int j = 0; j<[fonts count]; j++) {
|
for (int j = 0; j<[fonts count]; j++) {
|
||||||
// NSLog(@"%@",[fonts objectAtIndex:j]);
|
NSLog(@"%@",[fonts objectAtIndex:j]);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||||
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
|
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
#import "RoleTreeModel.h"
|
#import "RoleTreeModel.h"
|
||||||
#import "BaseViewController.h"
|
#import "BaseViewController.h"
|
||||||
|
#import "StartPayViewController.h"
|
||||||
|
|
||||||
@interface StartGNView ()<UIScrollViewDelegate>
|
@interface StartGNView ()<UIScrollViewDelegate>
|
||||||
///
|
///
|
||||||
|
@ -331,9 +332,18 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{///职员
|
{///职员
|
||||||
[UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"PPT" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]];
|
if(self.pagec.selectNumber==0)
|
||||||
StartZNPPTViewController *vc = [StartZNPPTViewController new];
|
{
|
||||||
[self.viewController.navigationController pushViewController:vc animated:YES];
|
[UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"PPT" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]];
|
||||||
|
StartZNPPTViewController *vc = [StartZNPPTViewController new];
|
||||||
|
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartPayViewController *vc = [StartPayViewController new];
|
||||||
|
vc.source = @"guide_workplace_create_ppt";
|
||||||
|
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#import "StartZNPPTHUDAlter.h"
|
#import "StartZNPPTHUDAlter.h"
|
||||||
#import "StartZNPPTDaGangViewController.h"
|
#import "StartZNPPTDaGangViewController.h"
|
||||||
#import "NetWorkManager.h"
|
#import "NetWorkManager.h"
|
||||||
|
#import "StartPayViewController.h"
|
||||||
|
|
||||||
@interface StartZNPPTView ()<JhtBannerScrollViewDelegate, JhtBannerScrollViewDataSource>
|
@interface StartZNPPTView ()<JhtBannerScrollViewDelegate, JhtBannerScrollViewDataSource>
|
||||||
@property (nonatomic, strong) JhtBannerScrollView *bannerView;
|
@property (nonatomic, strong) JhtBannerScrollView *bannerView;
|
||||||
|
@ -269,6 +270,7 @@
|
||||||
|
|
||||||
-(void)nextAction
|
-(void)nextAction
|
||||||
{
|
{
|
||||||
|
|
||||||
[LoadAlterView show];
|
[LoadAlterView show];
|
||||||
ExamplePptModelDataItems *model = self.arrdata[self.bannerView.currentIndex];
|
ExamplePptModelDataItems *model = self.arrdata[self.bannerView.currentIndex];
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.equalTo(imgvhead.mas_right).offset(12);
|
make.left.equalTo(imgvhead.mas_right).offset(12);
|
||||||
make.top.equalTo(imgvhead).offset(2);
|
make.top.equalTo(imgvhead).offset(2);
|
||||||
|
make.width.lessThanOrEqualTo(@(100));
|
||||||
}];
|
}];
|
||||||
_lbname = lbname;
|
_lbname = lbname;
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,10 @@
|
||||||
[cell setBackgroundColor:[UIColor clearColor]];
|
[cell setBackgroundColor:[UIColor clearColor]];
|
||||||
}
|
}
|
||||||
cell.model = self.arrdata[indexPath.row];
|
cell.model = self.arrdata[indexPath.row];
|
||||||
|
[cell setBackValueDel:^(BatchStatusByidModelDataItems * _Nonnull model) {
|
||||||
|
[self.arrdata removeObject:model];
|
||||||
|
[self.tableView reloadData];
|
||||||
|
}];
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||||
|
|
|
@ -9,11 +9,13 @@
|
||||||
|
|
||||||
#import "BatchStatusByidModel.h"
|
#import "BatchStatusByidModel.h"
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
typedef void(^PiLiangXiuGaiLiShiTableViewCellBackDel)(BatchStatusByidModelDataItems *model);
|
||||||
@interface PiLiangXiuGaiLiShiTableViewCell : UITableViewCell
|
@interface PiLiangXiuGaiLiShiTableViewCell : UITableViewCell
|
||||||
///
|
///
|
||||||
@property (nonatomic , strong) BatchStatusByidModelDataItems *model;
|
@property (nonatomic , strong) BatchStatusByidModelDataItems *model;
|
||||||
|
|
||||||
|
///
|
||||||
|
@property (nonatomic , strong) PiLiangXiuGaiLiShiTableViewCellBackDel backValueDel;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
#import "PiLiangXiuGaiLiShiTableViewCell.h"
|
#import "PiLiangXiuGaiLiShiTableViewCell.h"
|
||||||
|
|
||||||
#import "PingYuAlterView.h"
|
#import "PingYuAlterView.h"
|
||||||
|
#import "NomoAlterView.h"
|
||||||
|
|
||||||
|
#import "NetWorkManager.h"
|
||||||
|
|
||||||
|
|
||||||
@interface PiLiangXiuGaiLiShiTableViewCell ()
|
@interface PiLiangXiuGaiLiShiTableViewCell ()
|
||||||
@property (nonatomic , strong) UIImageView *imgvback;
|
@property (nonatomic , strong) UIImageView *imgvback;
|
||||||
|
@ -35,6 +39,9 @@
|
||||||
}];
|
}];
|
||||||
[Tools normalShadow:viewback shadowColor:RGBACOLOR(0, 80, 106, 0.1) shadowOpacity:0 cornerRadius:8 shadowRadius:10];
|
[Tools normalShadow:viewback shadowColor:RGBACOLOR(0, 80, 106, 0.1) shadowOpacity:0 cornerRadius:8 shadowRadius:10];
|
||||||
|
|
||||||
|
UILongPressGestureRecognizer *gesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longCellAction:)];
|
||||||
|
[viewback addGestureRecognizer:gesture];
|
||||||
|
|
||||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||||
[viewback addSubview:imgvback];
|
[viewback addSubview:imgvback];
|
||||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
@ -195,4 +202,32 @@
|
||||||
[PingYuAlterView showInfo:self.model.comment];
|
[PingYuAlterView showInfo:self.model.comment];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-(void)longCellAction:(UIGestureRecognizer *)gesture
|
||||||
|
{
|
||||||
|
if(gesture.state==UIGestureRecognizerStateBegan)
|
||||||
|
{
|
||||||
|
[NomoAlterView showInfo:[NSString stringWithFormat:@"是否删除‘%@’",self.model.title] SelectTag:^(NSInteger tag) {
|
||||||
|
if(tag==1)
|
||||||
|
{
|
||||||
|
[LoadAlterView show];
|
||||||
|
[NetWorkManager requestBatchCorrectDelData:self ID:self.model.ID Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) {
|
||||||
|
[LoadAlterView dismiss];
|
||||||
|
if(state)
|
||||||
|
{
|
||||||
|
if(self.backValueDel)
|
||||||
|
{
|
||||||
|
self.backValueDel(self.model);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[HXHud showMessage:responseObject.message afterDelayType:1];
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
[imgvback setImage:[UIImage imageNamed:@"plpg_backhd"]];
|
[imgvback setImage:[UIImage imageNamed:@"plpg_backhd"]];
|
||||||
[self.view addSubview:imgvback];
|
[self.view addSubview:imgvback];
|
||||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.right.top.equalTo(imgvback);
|
make.left.right.top.equalTo(self.view);
|
||||||
}];
|
}];
|
||||||
[self.view sendSubviewToBack:imgvback];
|
[self.view sendSubviewToBack:imgvback];
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
[field setBackDidTextValue:^(NSString * _Nonnull value) {
|
[field setBackDidTextValue:^(NSString * _Nonnull value) {
|
||||||
if(self.strfenBig.intValue>0)
|
if(self.strfenBig.intValue>0)
|
||||||
{
|
{
|
||||||
self.lbtsfen.text = [NSString stringWithFormat:@"%@/%@分",value,self.strfenBig];
|
self.lbtsfen.text = [NSString stringWithFormat:@"%d/%@分",value.intValue+self.strfenNow.intValue,self.strfenBig];
|
||||||
[self refShowFen:self.lbtsfen];
|
[self refShowFen:self.lbtsfen];
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -140,6 +140,7 @@
|
||||||
make.height.offset(66+(UISCREEN_WIDTH-70)/3.0*140/102);
|
make.height.offset(66+(UISCREEN_WIDTH-70)/3.0*140/102);
|
||||||
}];
|
}];
|
||||||
[viewImages setHidden:YES];
|
[viewImages setHidden:YES];
|
||||||
|
viewImages.ispiliangpigai = self.ispiliangpigai;
|
||||||
_viewImages = viewImages;
|
_viewImages = viewImages;
|
||||||
[viewImages setBackValue:^{
|
[viewImages setBackValue:^{
|
||||||
if(self.arrData.count==0)
|
if(self.arrData.count==0)
|
||||||
|
@ -291,7 +292,7 @@
|
||||||
{
|
{
|
||||||
[btjiaoyan setSelected:YES];
|
[btjiaoyan setSelected:YES];
|
||||||
}
|
}
|
||||||
[btjiaoyan setHidden:!self.ispiliangpigai];
|
// [btjiaoyan setHidden:!self.ispiliangpigai];
|
||||||
[btjiaoyan setEnlargeEdgeWithTop:5 right:5 bottom:5 left:5];
|
[btjiaoyan setEnlargeEdgeWithTop:5 right:5 bottom:5 left:5];
|
||||||
|
|
||||||
UIButton *btshili = [[UIButton alloc] init];
|
UIButton *btshili = [[UIButton alloc] init];
|
||||||
|
@ -310,6 +311,7 @@
|
||||||
}];
|
}];
|
||||||
[btshili setIconInLeftWithSpacing:4];
|
[btshili setIconInLeftWithSpacing:4];
|
||||||
[btshili addTarget:self action:@selector(shiliAction) forControlEvents:UIControlEventTouchUpInside];
|
[btshili addTarget:self action:@selector(shiliAction) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
[btshili setHidden:self.ispiliangpigai];
|
||||||
|
|
||||||
}
|
}
|
||||||
-(void)backAction
|
-(void)backAction
|
||||||
|
@ -448,22 +450,25 @@
|
||||||
///1作文批改 2拍照写作 3课堂写作
|
///1作文批改 2拍照写作 3课堂写作
|
||||||
if(self.type==1)
|
if(self.type==1)
|
||||||
{
|
{
|
||||||
[UserInfoModel quanXianJiaoYan:self scence:@"write_correct" ispush:NO back:^(BOOL value) {
|
[UserInfoModel quanXianJiaoYan:self scence:@"write_correct" ispush:YES back:^(BOOL value) {
|
||||||
if(self.ispiliangpigai)
|
if(value)
|
||||||
{///批量批改详情
|
|
||||||
if(self.backImages)
|
|
||||||
{
|
|
||||||
self.backImages(arrImgages);
|
|
||||||
}
|
|
||||||
[self.navigationController popViewControllerAnimated:YES];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
|
if(self.ispiliangpigai)
|
||||||
view.type = 1;
|
{///批量批改详情
|
||||||
view.arrXZImages = arrImgages;
|
if(self.backImages)
|
||||||
view.isquanxian = value;
|
{
|
||||||
[self.view addSubview:view];
|
self.backImages(arrImgages);
|
||||||
|
}
|
||||||
|
[self.navigationController popViewControllerAnimated:YES];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
|
||||||
|
view.type = 1;
|
||||||
|
view.arrXZImages = arrImgages;
|
||||||
|
view.isquanxian = value;
|
||||||
|
[self.view addSubview:view];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
self.shapeLayer.lineJoin = kCALineJoinRound;
|
self.shapeLayer.lineJoin = kCALineJoinRound;
|
||||||
self.shapeLayer.lineWidth = 15.0f;///画笔大小
|
self.shapeLayer.lineWidth = 15.0f;///画笔大小
|
||||||
self.shapeLayer.strokeColor = [[UIColor blueColor] CGColor];
|
self.shapeLayer.strokeColor = [[UIColor blueColor] CGColor];
|
||||||
self.shapeLayer.fillColor = [UIColor whiteColor].CGColor;
|
self.shapeLayer.fillColor = [UIColor clearColor].CGColor;
|
||||||
[self.layer addSublayer:self.shapeLayer];
|
[self.layer addSublayer:self.shapeLayer];
|
||||||
self.mosaicImageLayer.mask = self.shapeLayer;
|
self.mosaicImageLayer.mask = self.shapeLayer;
|
||||||
|
|
||||||
|
@ -149,6 +149,7 @@
|
||||||
UITouch *touch = [touches anyObject];
|
UITouch *touch = [touches anyObject];
|
||||||
CGPoint point = [touch locationInView:self];
|
CGPoint point = [touch locationInView:self];
|
||||||
CGPathAddLineToPoint(self.path, NULL, point.x, point.y);
|
CGPathAddLineToPoint(self.path, NULL, point.x, point.y);
|
||||||
|
|
||||||
CGMutablePathRef path = CGPathCreateMutableCopy(self.path);
|
CGMutablePathRef path = CGPathCreateMutableCopy(self.path);
|
||||||
self.shapeLayer.path = path;
|
self.shapeLayer.path = path;
|
||||||
CGPathRelease(path);
|
CGPathRelease(path);
|
||||||
|
@ -336,7 +337,7 @@
|
||||||
UIColor *pureColor = [UIColor whiteColor]; // 设置图片的纯色为红色
|
UIColor *pureColor = [UIColor whiteColor]; // 设置图片的纯色为红色
|
||||||
|
|
||||||
// 开始图形上下文
|
// 开始图形上下文
|
||||||
UIGraphicsBeginImageContextWithOptions(sourceImage.size, NO, 0.0);
|
UIGraphicsBeginImageContextWithOptions(sourceImage.size, YES, 1.0);
|
||||||
|
|
||||||
// 使用纯色填充图形上下文
|
// 使用纯色填充图形上下文
|
||||||
[pureColor setFill];
|
[pureColor setFill];
|
||||||
|
|
|
@ -16,6 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
@property (nonatomic , strong) UILabel *lbnumber;
|
@property (nonatomic , strong) UILabel *lbnumber;
|
||||||
///
|
///
|
||||||
@property (nonatomic , strong) UIButton *btdel;
|
@property (nonatomic , strong) UIButton *btdel;
|
||||||
|
@property (nonatomic , strong) UIButton *btselect ;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -48,6 +48,13 @@
|
||||||
[lbnumber.layer setCornerRadius:10];
|
[lbnumber.layer setCornerRadius:10];
|
||||||
_lbnumber = lbnumber;
|
_lbnumber = lbnumber;
|
||||||
|
|
||||||
|
UIButton *btselect = [[UIButton alloc] init];
|
||||||
|
[viewback addSubview:btselect];
|
||||||
|
[btselect mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
make.edges.equalTo(viewback);
|
||||||
|
}];
|
||||||
|
_btselect = btselect;
|
||||||
|
|
||||||
UIButton *btdel = [[UIButton alloc] init];
|
UIButton *btdel = [[UIButton alloc] init];
|
||||||
[btdel setImage:[UIImage imageNamed:@"cam_del"] forState:UIControlStateNormal];
|
[btdel setImage:[UIImage imageNamed:@"cam_del"] forState:UIControlStateNormal];
|
||||||
[viewback addSubview:btdel];
|
[viewback addSubview:btdel];
|
||||||
|
|
|
@ -14,6 +14,8 @@ typedef void(^CamreImagesViewBack)(void);
|
||||||
@property (nonatomic , strong) NSMutableArray *arrdata;
|
@property (nonatomic , strong) NSMutableArray *arrdata;
|
||||||
///
|
///
|
||||||
@property (nonatomic , strong) CamreImagesViewBack backValue;
|
@property (nonatomic , strong) CamreImagesViewBack backValue;
|
||||||
|
///是否是批量批改
|
||||||
|
@property (nonatomic , assign) BOOL ispiliangpigai;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#import "CamreImagesView.h"
|
#import "CamreImagesView.h"
|
||||||
#import "CamreImagesCollectionViewCell.h"
|
#import "CamreImagesCollectionViewCell.h"
|
||||||
|
#import "ImageEditDrawViewController.h"
|
||||||
|
|
||||||
@interface CamreImagesView ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
|
@interface CamreImagesView ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
|
||||||
///
|
///
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
[collect setDelegate:self];
|
[collect setDelegate:self];
|
||||||
[collect setDataSource:self];
|
[collect setDataSource:self];
|
||||||
[collect setBackgroundColor:[UIColor clearColor]];
|
[collect setBackgroundColor:[UIColor clearColor]];
|
||||||
collect.userInteractionEnabled = YES;
|
// collect.userInteractionEnabled = YES;
|
||||||
[self addSubview:collect];
|
[self addSubview:collect];
|
||||||
[collect mas_makeConstraints:^(MASConstraintMaker *make) {
|
[collect mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.offset(0);
|
make.left.offset(0);
|
||||||
|
@ -111,7 +111,28 @@
|
||||||
[self.collect reloadData];
|
[self.collect reloadData];
|
||||||
self.backValue();
|
self.backValue();
|
||||||
}
|
}
|
||||||
|
-(void)selectAction:(UIButton *)sender
|
||||||
|
{
|
||||||
|
if(self.ispiliangpigai==NO)return;
|
||||||
|
///做选中操作
|
||||||
|
ImageEditDrawViewController *vc = [ImageEditDrawViewController new];
|
||||||
|
vc.arrImages = [NSMutableArray arrayWithObject:self.arrdata[sender.tag]];
|
||||||
|
[self.viewController.navigationController pushViewController:vc animated:NO];
|
||||||
|
[vc setBackValue:^(NSMutableArray * _Nonnull arrimages) {
|
||||||
|
@try {
|
||||||
|
self.arrdata[sender.tag] = arrimages.firstObject;
|
||||||
|
} @catch (NSException *exception) {
|
||||||
|
|
||||||
|
} @finally {
|
||||||
|
|
||||||
|
}
|
||||||
|
[self.collect reloadData];
|
||||||
|
if(self.backValue)
|
||||||
|
{
|
||||||
|
self.backValue();
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
#pragma mark - UICollectionView
|
#pragma mark - UICollectionView
|
||||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
||||||
{
|
{
|
||||||
|
@ -127,6 +148,9 @@
|
||||||
[cell.btdel setTag:indexPath.row];
|
[cell.btdel setTag:indexPath.row];
|
||||||
[cell.btdel addTarget:self action:@selector(delAction:) forControlEvents:UIControlEventTouchUpInside];
|
[cell.btdel addTarget:self action:@selector(delAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
|
||||||
|
[cell.btselect setTag:indexPath.row];
|
||||||
|
[cell.btselect addTarget:self action:@selector(selectAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
//定义每个section的间距
|
//定义每个section的间距
|
||||||
|
@ -149,7 +173,6 @@
|
||||||
}
|
}
|
||||||
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
|
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
|
||||||
{
|
{
|
||||||
///做选中操作
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue