拍照写作

This commit is contained in:
pengguangjian 2024-09-23 18:29:44 +08:00
parent 975311e9e6
commit f1c575ced8
54 changed files with 2637 additions and 78 deletions

View File

@ -67,6 +67,21 @@
CABA14E72C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14E62C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m */; };
CABA14EB2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14EA2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m */; };
CABA14ED2C9D7CE2002CB3B1 /* alimamashuheiti.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */; };
CAC8063E2CA10B1600C21AA7 /* StartZWPIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */; };
CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806412CA111C300C21AA7 /* StartZWPIView.m */; };
CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */; };
CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */; };
CAC8064E2CA119F800C21AA7 /* StartZWPIDetailView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */; };
CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */; };
CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806552CA1382500C21AA7 /* StartZNXZView.m */; };
CAC806582CA13CEC00C21AA7 /* zihunbiantaoti.TTF in Resources */ = {isa = PBXBuildFile; fileRef = CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */; };
CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */; };
CAC806602CA144D000C21AA7 /* StartZNXZKeysView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */; };
CAC806642CA151ED00C21AA7 /* StartZNXZSiLuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */; };
CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */; };
CAC8066C2CA16DCC00C21AA7 /* StartPZXZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */; };
CAC806702CA16E0700C21AA7 /* StartPZXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */; };
CAC806732CA171ED00C21AA7 /* StartPZXZPageView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */; };
CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CB489DC927449D5C00DA044A /* AppDelegate.m */; };
CB489DD027449D5C00DA044A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB489DCF27449D5C00DA044A /* ViewController.m */; };
CB489DD327449D5C00DA044A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB489DD127449D5C00DA044A /* Main.storyboard */; };
@ -341,6 +356,35 @@
CABA14E92C9D7AB2002CB3B1 /* StartKeTangXieZuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartKeTangXieZuoView.h; sourceTree = "<group>"; };
CABA14EA2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartKeTangXieZuoView.m; sourceTree = "<group>"; };
CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = alimamashuheiti.ttf; sourceTree = "<group>"; };
CAC8063C2CA10B1600C21AA7 /* StartZWPIViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIViewController.h; sourceTree = "<group>"; };
CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIViewController.m; sourceTree = "<group>"; };
CAC806402CA111C300C21AA7 /* StartZWPIView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIView.h; sourceTree = "<group>"; };
CAC806412CA111C300C21AA7 /* StartZWPIView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIView.m; sourceTree = "<group>"; };
CAC806442CA113A200C21AA7 /* StartZWPIViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIViewCell.h; sourceTree = "<group>"; };
CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIViewCell.m; sourceTree = "<group>"; };
CAC806482CA119C500C21AA7 /* StartZWPIDetailViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIDetailViewController.h; sourceTree = "<group>"; };
CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIDetailViewController.m; sourceTree = "<group>"; };
CAC8064C2CA119F800C21AA7 /* StartZWPIDetailView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIDetailView.h; sourceTree = "<group>"; };
CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIDetailView.m; sourceTree = "<group>"; };
CAC806502CA137E600C21AA7 /* StartZNXZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZViewController.h; sourceTree = "<group>"; };
CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZViewController.m; sourceTree = "<group>"; };
CAC806542CA1382500C21AA7 /* StartZNXZView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZView.h; sourceTree = "<group>"; };
CAC806552CA1382500C21AA7 /* StartZNXZView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZView.m; sourceTree = "<group>"; };
CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */ = {isa = PBXFileReference; lastKnownFileType = file; path = zihunbiantaoti.TTF; sourceTree = "<group>"; };
CAC8065A2CA1449E00C21AA7 /* StartZNXZKeysViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZKeysViewController.h; sourceTree = "<group>"; };
CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZKeysViewController.m; sourceTree = "<group>"; };
CAC8065E2CA144D000C21AA7 /* StartZNXZKeysView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZKeysView.h; sourceTree = "<group>"; };
CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZKeysView.m; sourceTree = "<group>"; };
CAC806622CA151ED00C21AA7 /* StartZNXZSiLuViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZSiLuViewController.h; sourceTree = "<group>"; };
CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZSiLuViewController.m; sourceTree = "<group>"; };
CAC806662CA1521200C21AA7 /* StartZNXZSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZSiLuView.h; sourceTree = "<group>"; };
CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZSiLuView.m; sourceTree = "<group>"; };
CAC8066A2CA16DCC00C21AA7 /* StartPZXZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZViewController.h; sourceTree = "<group>"; };
CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZViewController.m; sourceTree = "<group>"; };
CAC8066E2CA16E0700C21AA7 /* StartPZXZView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZView.h; sourceTree = "<group>"; };
CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZView.m; sourceTree = "<group>"; };
CAC806712CA171ED00C21AA7 /* StartPZXZPageView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZPageView.h; sourceTree = "<group>"; };
CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZPageView.m; sourceTree = "<group>"; };
CB001E19298BBCFB005E0907 /* ProductApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ProductApp.entitlements; sourceTree = "<group>"; };
CB489DC527449D5C00DA044A /* ProductApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProductApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
CB489DC827449D5C00DA044A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@ -825,6 +869,9 @@
CABA146E2C9D0D3C002CB3B1 /* 引导 */ = {
isa = PBXGroup;
children = (
CAC806692CA16DBC00C21AA7 /* 拍照写作 */,
CAC8064F2CA137C700C21AA7 /* 智能写作 */,
CAC8063B2CA10AEB00C21AA7 /* 作文批改 */,
CABA14E42C9D76B7002CB3B1 /* 课堂写作 */,
CABA14862C9D277E002CB3B1 /* view */,
CABA147C2C9D198A002CB3B1 /* cell */,
@ -991,6 +1038,135 @@
path = view;
sourceTree = "<group>";
};
CAC8063B2CA10AEB00C21AA7 /* 作文批改 */ = {
isa = PBXGroup;
children = (
CAC806472CA119AF00C21AA7 /* 批改信息 */,
CAC806432CA1138700C21AA7 /* cell */,
CAC8063F2CA111B500C21AA7 /* view */,
CAC8063C2CA10B1600C21AA7 /* StartZWPIViewController.h */,
CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */,
);
path = "作文批改";
sourceTree = "<group>";
};
CAC8063F2CA111B500C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC806402CA111C300C21AA7 /* StartZWPIView.h */,
CAC806412CA111C300C21AA7 /* StartZWPIView.m */,
);
path = view;
sourceTree = "<group>";
};
CAC806432CA1138700C21AA7 /* cell */ = {
isa = PBXGroup;
children = (
CAC806442CA113A200C21AA7 /* StartZWPIViewCell.h */,
CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */,
);
path = cell;
sourceTree = "<group>";
};
CAC806472CA119AF00C21AA7 /* 批改信息 */ = {
isa = PBXGroup;
children = (
CAC8064B2CA119EF00C21AA7 /* view */,
CAC806482CA119C500C21AA7 /* StartZWPIDetailViewController.h */,
CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */,
);
path = "批改信息";
sourceTree = "<group>";
};
CAC8064B2CA119EF00C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC8064C2CA119F800C21AA7 /* StartZWPIDetailView.h */,
CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */,
);
path = view;
sourceTree = "<group>";
};
CAC8064F2CA137C700C21AA7 /* 智能写作 */ = {
isa = PBXGroup;
children = (
CAC806612CA151D900C21AA7 /* 思路 */,
CAC806592CA1448700C21AA7 /* 关键词 */,
CAC806532CA1381700C21AA7 /* view */,
CAC806502CA137E600C21AA7 /* StartZNXZViewController.h */,
CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */,
);
path = "智能写作";
sourceTree = "<group>";
};
CAC806532CA1381700C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC806542CA1382500C21AA7 /* StartZNXZView.h */,
CAC806552CA1382500C21AA7 /* StartZNXZView.m */,
);
path = view;
sourceTree = "<group>";
};
CAC806592CA1448700C21AA7 /* 关键词 */ = {
isa = PBXGroup;
children = (
CAC8065D2CA144C300C21AA7 /* view */,
CAC8065A2CA1449E00C21AA7 /* StartZNXZKeysViewController.h */,
CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */,
);
path = "关键词";
sourceTree = "<group>";
};
CAC8065D2CA144C300C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC8065E2CA144D000C21AA7 /* StartZNXZKeysView.h */,
CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */,
);
path = view;
sourceTree = "<group>";
};
CAC806612CA151D900C21AA7 /* 思路 */ = {
isa = PBXGroup;
children = (
CAC806652CA1520400C21AA7 /* view */,
CAC806622CA151ED00C21AA7 /* StartZNXZSiLuViewController.h */,
CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */,
);
path = "思路";
sourceTree = "<group>";
};
CAC806652CA1520400C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC806662CA1521200C21AA7 /* StartZNXZSiLuView.h */,
CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */,
);
path = view;
sourceTree = "<group>";
};
CAC806692CA16DBC00C21AA7 /* 拍照写作 */ = {
isa = PBXGroup;
children = (
CAC8066D2CA16DF500C21AA7 /* view */,
CAC8066A2CA16DCC00C21AA7 /* StartPZXZViewController.h */,
CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */,
);
path = "拍照写作";
sourceTree = "<group>";
};
CAC8066D2CA16DF500C21AA7 /* view */ = {
isa = PBXGroup;
children = (
CAC8066E2CA16E0700C21AA7 /* StartPZXZView.h */,
CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */,
CAC806712CA171ED00C21AA7 /* StartPZXZPageView.h */,
CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */,
);
path = view;
sourceTree = "<group>";
};
CB489DBC27449D5C00DA044A = {
isa = PBXGroup;
children = (
@ -1030,6 +1206,7 @@
CABA14732C9D1165002CB3B1 /* qidong@2x.png */,
CABA14722C9D1165002CB3B1 /* qidong@3x.png */,
CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */,
CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */,
);
path = ProductApp;
sourceTree = "<group>";
@ -1858,6 +2035,7 @@
CB489F592744A0BD00DA044A /* bigfont.txt in Resources */,
CB489FC52744A0BD00DA044A /* loading4@2x.png in Resources */,
CB489FC12744A0BD00DA044A /* loading5@3x.png in Resources */,
CAC806582CA13CEC00C21AA7 /* zihunbiantaoti.TTF in Resources */,
CB489F8C2744A0BD00DA044A /* NaviGationView.xib in Resources */,
CB489FDA2744A30000DA044A /* 全屏.png in Resources */,
CB489FC22744A0BD00DA044A /* loading7@2x.png in Resources */,
@ -1944,7 +2122,9 @@
CB489F8F2744A0BD00DA044A /* UITextField+SY.m in Sources */,
CBD422BA28DAF2E800C32440 /* JhtBannerCardView.m in Sources */,
CB489FCB2744A0BD00DA044A /* HXHud.m in Sources */,
CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */,
CB489DD027449D5C00DA044A /* ViewController.m in Sources */,
CAC806702CA16E0700C21AA7 /* StartPZXZView.m in Sources */,
CB489FAA2744A0BD00DA044A /* UIImage+XLExtension.m in Sources */,
CABA14672C9D0B31002CB3B1 /* AIChatViewController.m in Sources */,
CB489F582744A0BD00DA044A /* UIDevice+PGJ.m in Sources */,
@ -1968,12 +2148,15 @@
CB489F6B2744A0BD00DA044A /* LJsignView.m in Sources */,
CB489F622744A0BD00DA044A /* MDBwebVIew.m in Sources */,
CB489F992744A0BD00DA044A /* UserInfoModel.m in Sources */,
CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */,
CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */,
CB489F8B2744A0BD00DA044A /* NSString+extend.m in Sources */,
CB489F8D2744A0BD00DA044A /* NaviGationView.m in Sources */,
CB489F9C2744A0BD00DA044A /* LogTableViewCell.m in Sources */,
CABA14B12C9D4318002CB3B1 /* UserAuthModel.m in Sources */,
CB489F532744A0BD00DA044A /* RecordAudio.m in Sources */,
CAC8063E2CA10B1600C21AA7 /* StartZWPIViewController.m in Sources */,
CAC806732CA171ED00C21AA7 /* StartPZXZPageView.m in Sources */,
CABA14B72C9D4318002CB3B1 /* UserUploadModel.m in Sources */,
CB489FB22744A0BD00DA044A /* FSActionSheetItem.m in Sources */,
CB489F4B2744A0BD00DA044A /* PGGDatePickView.m in Sources */,
@ -1996,15 +2179,19 @@
CB489F512744A0BD00DA044A /* PGJSearchView.m in Sources */,
CA8181B02C9EB96000EE7E6E /* StartKTXZPGDetailFJView.m in Sources */,
CB489F7A2744A0BD00DA044A /* FSTextView.m in Sources */,
CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */,
CABA14B32C9D4318002CB3B1 /* UserConfigModel.m in Sources */,
CA8181992C9E77FB00EE7E6E /* DownJDLoadView.m in Sources */,
CB489F6F2744A0BD00DA044A /* XLAlertView.m in Sources */,
CA81819D2C9E9C6600EE7E6E /* StartKTXZPGDetailViewController.m in Sources */,
CB489FA32744A0BD00DA044A /* ZJContentView.m in Sources */,
CA8181922C9E748500EE7E6E /* StartKTXZPGViewController.m in Sources */,
CAC8064E2CA119F800C21AA7 /* StartZWPIDetailView.m in Sources */,
CB489F6C2744A0BD00DA044A /* RadianDisView.m in Sources */,
CABA14AE2C9D4318002CB3B1 /* OrderInfoModel.m in Sources */,
CB489F502744A0BD00DA044A /* Tools.m in Sources */,
CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */,
CAC806602CA144D000C21AA7 /* StartZNXZKeysView.m in Sources */,
CABA14E72C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m in Sources */,
CABA14782C9D13CD002CB3B1 /* StartSFViewController.m in Sources */,
CB489DDB27449D5D00DA044A /* main.m in Sources */,
@ -2026,6 +2213,8 @@
CABA14892C9D2AE2002CB3B1 /* StartGNTiShiView.m in Sources */,
CB489F8E2744A0BD00DA044A /* UITextFieldYS.m in Sources */,
CB489F922744A0BD00DA044A /* IndexGetNewsModel.m in Sources */,
CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */,
CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */,
CABA14E02C9D6F30002CB3B1 /* RoleTreeModel.m in Sources */,
CB489F4F2744A0BD00DA044A /* AddressListAlterViewTableViewCell.m in Sources */,
CA8181A42C9EA07300EE7E6E /* StartKTXZPGDetailTabView.m in Sources */,
@ -2038,8 +2227,10 @@
CB489FA62744A0BD00DA044A /* ZJScrollSegmentView.m in Sources */,
CABA14AF2C9D4318002CB3B1 /* PayOrderModel.m in Sources */,
CB489F812744A0BD00DA044A /* GTMBase64.m in Sources */,
CAC806642CA151ED00C21AA7 /* StartZNXZSiLuViewController.m in Sources */,
CB489F962744A0BD00DA044A /* SmsloginCodeModel.m in Sources */,
CB489F712744A0BD00DA044A /* RootTabBarController.m in Sources */,
CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */,
CABA14BE2C9D4342002CB3B1 /* TimeTools.m in Sources */,
CB489F762744A0BD00DA044A /* UIColor+LSFoundation.m in Sources */,
CB489F952744A0BD00DA044A /* BaseRequestDataController.m in Sources */,
@ -2080,6 +2271,7 @@
CB489FA12744A0BD00DA044A /* ZJTitleView.m in Sources */,
CB489FAF2744A0BD00DA044A /* FSActionSheetConfig.m in Sources */,
CB489FB52744A0BD00DA044A /* HYTimePickerView.m in Sources */,
CAC8066C2CA16DCC00C21AA7 /* StartPZXZViewController.m in Sources */,
CB489F722744A0BD00DA044A /* MCTabBarController.m in Sources */,
CB489F9F2744A0BD00DA044A /* LogView.m in Sources */,
CABA146D2C9D0B3F002CB3B1 /* WoDeViewController.m in Sources */,
@ -2283,7 +2475,7 @@
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
);
MARKETING_VERSION = 2.3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bt.aiwrite;
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 1;
@ -2344,7 +2536,7 @@
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
);
MARKETING_VERSION = 2.3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bt.aiwrite;
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 1;

View File

@ -10,7 +10,7 @@
#import "StartViewController.h"
#import "StartKTXZPGDetailViewController.h"
#import "StartPZXZViewController.h"
@interface AppDelegate ()
@ -33,7 +33,7 @@
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartKTXZPGDetailViewController new]]];
[self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartPZXZViewController new]]];
[self.window makeKeyAndVisible];

View File

@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "蒙版组 13017@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "蒙版组 13017@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "容器@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "容器@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "容器@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "容器@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

View File

@ -15,6 +15,7 @@
<key>UIAppFonts</key>
<array>
<string>alimamashuheiti.ttf</string>
<string>zihunbiantaoti.TTF</string>
</array>
<key>UIBackgroundModes</key>
<array/>

View File

@ -72,6 +72,7 @@ static time_t bootSecTime(void){
+(NSString *)getIPV6Info
{
NSString *strback = @"";
NSMutableArray *arrcon = [NSMutableArray new];
struct ifaddrs *interfaces = NULL;
struct ifaddrs *addr = NULL;
int result = getifaddrs(&interfaces);
@ -87,15 +88,44 @@ static time_t bootSecTime(void){
inet_ntop(AF_INET6, &sa->sin6_addr, str, INET6_ADDRSTRLEN);
NSString *ipv6Address = [NSString stringWithUTF8String:str];
NSLog(@"Interface: %@, IPv6 Address: %@", interfaceName, ipv6Address);
if(ipv6Address.length==39&&strback.length==0)
if(![ipv6Address containsString:@"fe80::"])
{
strback = ipv6Address;
break;
if(ipv6Address.length==39)
{
if(![arrcon containsObject:ipv6Address])
{
[arrcon addObject:ipv6Address];
}
}
else
{
NSArray *arrtt = [ipv6Address componentsSeparatedByString:@":"];
if(arrtt.count>4)
{
NSMutableArray *listArray = [NSMutableArray array];
for (NSString *str in arrtt) {
if (![listArray containsObject:str]) {
[listArray addObject:str];
}
}
if(listArray.count>4)
{
if(![arrcon containsObject:ipv6Address])
{
[arrcon addObject:ipv6Address];
}
}
}
}
}
}
}
freeifaddrs(interfaces);
}
if(arrcon.count>0)
{
strback = [arrcon componentsJoinedByString:@","];
}
return strback;
}
@end

View File

@ -8,6 +8,10 @@
#import "StartGNView.h"
#import "PageControlView.h"
#import "StartKeTangXieZuoViewController.h"
#import "StartZWPIViewController.h"
#import "StartZNXZViewController.h"
#import "StartPZXZViewController.h"
@interface StartGNView ()<UIScrollViewDelegate>
///
@ -286,15 +290,18 @@
}
else if([str isEqualToString:@"yd_xs_2"])
{///
StartPZXZViewController *vc = [StartPZXZViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
else if([str isEqualToString:@"yd_xs_1"])
{///
StartZWPIViewController *vc = [StartZWPIViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
else
{///
StartZNXZViewController *vc = [StartZNXZViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
}
else

View File

@ -0,0 +1,16 @@
//
// StartZWPIViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,42 @@
//
// StartZWPIViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZWPIViewController.h"
#import "StartZWPIView.h"
@interface StartZWPIViewController ()
@end
@implementation StartZWPIViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
[self showNaviGationView:YES];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
[self.view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
StartZWPIView *view = [[StartZWPIView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZWPIViewCell.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "JhtBannerCardView.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIViewCell : JhtBannerCardView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,48 @@
//
// StartZWPIViewCell.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZWPIViewCell.h"
@interface StartZWPIViewCell ()
@end
@implementation StartZWPIViewCell
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:@"《一路有你相伴》"];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentCenter];
[lbname setFont:[UIFont boldSystemFontOfSize:20]];
[self addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.offset(20);
make.left.right.equalTo(self);
make.height.offset(22);
}];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_xs_1"]];
[self addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.bottom.equalTo(self).offset(-20);
make.top.equalTo(lbname.mas_bottom).offset(15);
}];
[imgvback.layer setMasksToBounds:YES];
[imgvback.layer setCornerRadius:20];
}
return self;
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZWPIView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,164 @@
//
// StartZWPIView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZWPIView.h"
#import "JhtBannerScrollView.h"
#import "StartZWPIViewCell.h"
#import "StartKTXZPGViewController.h"
#define StartZWPICellHeight UISCREEN_HEIGHT-KMagrinTop-TabHeight-180
@interface StartZWPIView ()<JhtBannerScrollViewDelegate, JhtBannerScrollViewDataSource>
@property (nonatomic, strong) JhtBannerScrollView *bannerView;
@end
@implementation StartZWPIView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UIImageView *imgvlog= [[UIImageView alloc] init];
[imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]];
[self addSubview:imgvlog];
[imgvlog mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.offset(50);
make.left.offset(14);
make.top.offset(KMagrinTop+22);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:[NSString stringWithFormat:@"初一、作文批改"]];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:16]];
[self addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvlog.mas_right).offset(12);
make.centerY.equalTo(imgvlog);
}];
UILabel *lbts = [[UILabel alloc] init];
[lbts setText:@"需要你选择案例给我分析批改"];
[lbts setTextColor:RGBCOLOR(51, 51, 51)];
[lbts setTextAlignment:NSTextAlignmentLeft];
[lbts setFont:[UIFont boldSystemFontOfSize:16]];
[self addSubview:lbts];
[lbts mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(imgvlog.mas_bottom).offset(30);
make.centerX.equalTo(self);
}];
JhtBannerScrollView *bannerView = [[JhtBannerScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, StartZWPICellHeight)];
bannerView.delegate = self;
bannerView.dataSource = self;
bannerView.minCoverViewAlpha = 0.0;
bannerView.leftRightMargin = UISCREEN_WIDTH*0.05;
bannerView.topBottomMargin = 20;
bannerView.orientation = BV_Orientation_Horizontal;
bannerView.isOpenAutoScroll = NO;
bannerView.isCarousel = NO;
[bannerView setBackgroundColor:[UIColor clearColor]];
[self addSubview:bannerView];
[bannerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.top.equalTo(lbts.mas_bottom);
make.height.offset(StartZWPICellHeight);
}];
[bannerView setClipsToBounds:NO];
_bannerView = bannerView;
[self.bannerView reloadData];
UIButton *btnext = [[UIButton alloc] init];
[btnext setTitle:@"下一步" forState:UIControlStateNormal];
[btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btnext.titleLabel setFont:[UIFont systemFontOfSize:18]];
[btnext.layer setMasksToBounds:YES];
[btnext.layer setCornerRadius:25];
[btnext setBackgroundColor:RGBCOLOR(108, 119, 246)];
[self addSubview:btnext];
[btnext mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.height.offset(50);
make.top.equalTo(bannerView.mas_bottom);
}];
[btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside];
UIButton *btlast = [[UIButton alloc] init];
[btlast setTitle:@"上一步" forState:UIControlStateNormal];
[btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btlast.titleLabel setFont:[UIFont systemFontOfSize:14]];
[self addSubview:btlast];
[btlast mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.height.equalTo(btnext);
make.top.equalTo(btnext.mas_bottom);
}];
[btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside];
}
return self;
}
-(void)nextAction
{
// self.bannerView.currentIndex;
StartKTXZPGViewController *vc = [StartKTXZPGViewController new];
vc.type = 1;
[self.viewController.navigationController pushViewController:vc animated:YES];
}
-(void)lastAction
{
[self.viewController.navigationController popViewControllerAnimated:YES];
}
#pragma mark - JhtBannerScrollViewDataSource
/** cardView */
- (NSInteger)numberOfCardViewInBannerView:(JhtBannerScrollView *)bannerView
{
return 5;
}
/** cardView */
- (UIView *)bannerView:(JhtBannerScrollView *)bannerView cardViewForBannerViewAtIndex:(NSInteger)index
{
StartZWPIViewCell *cardView = (StartZWPIViewCell *)[bannerView dequeueReusableView];
if (!cardView) {
cardView = [[StartZWPIViewCell alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH*0.8, StartZWPICellHeight)];
cardView.tag = index;
}
return cardView;
}
/** cardView Size */
- (CGSize)sizeForCurrentCardViewInBannerView:(JhtBannerScrollView *)bannerView
{
return CGSizeMake(UISCREEN_WIDTH*0.8, StartZWPICellHeight);
}
/** cardView */
- (void)bannerView:(JhtBannerScrollView *)bannerView didScrollToCardViewWithIndex:(NSInteger)index
{
}
/** cardView
* index: bannerCardView index
*/
- (void)bannerView:(JhtBannerScrollView *)bannerView didSelectCardView:(UIView *)cardView withCardViewIndex:(NSInteger)index
{
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZWPIDetailViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIDetailViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,42 @@
//
// StartZWPIDetailViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZWPIDetailViewController.h"
#import "StartZWPIDetailView.h"
@interface StartZWPIDetailViewController ()
@end
@implementation StartZWPIDetailViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:animated];
[self showNaviGationView:YES];
[self.navigationView setTitle:@"作文批改" titleColor:RGBCOLOR(60, 60, 60)];
[self.navigationView setBackgroundColor:[UIColor whiteColor]];
[self.navigationView.backButton setHidden:YES];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.view setBackgroundColor:[UIColor whiteColor]];
StartZWPIDetailView *view = [[StartZWPIDetailView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self.view);
make.top.offset(NavHeight);
}];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZWPIDetailView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartZWPIDetailView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,211 @@
//
// StartZWPIDetailView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZWPIDetailView.h"
#import "StartKTXZPGDetailTabView.h"
#import "StartKTXZPGDetailZHView.h"
#import "StartKTXZPGDetailFJView.h"
@interface StartZWPIDetailView ()<UIScrollViewDelegate>
///
@property (nonatomic , strong) UIImageView *imgvback;
///
@property (nonatomic , strong) UIView *viewback;
///
@property (nonatomic , strong) StartKTXZPGDetailTabView *viewtop;
///
@property (nonatomic , strong) UIScrollView *scvbackinfo;
///
@property (nonatomic , strong) StartKTXZPGDetailFJView *viewfj;
@end
@implementation StartZWPIDetailView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UIScrollView *scvback = [[UIScrollView alloc] init];
[self addSubview:scvback];
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.offset(0);
make.width.equalTo(self);
make.height.equalTo(self).offset(-200);
}];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_xs_1"]];
[scvback addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.width.equalTo(scvback);
}];
_imgvback = imgvback;
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(imgvback).offset(20);
}];
UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)];
[viewback setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewback];
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewback.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)];
// layer
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = viewback.bounds;
//
maskLayer.path = maskPath.CGPath;
viewback.layer.mask = maskLayer;
[self drawInfoView:viewback];
_viewback = viewback;
UIView *viewbottom = [[UIView alloc] init];
[viewbottom setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewbottom];
[viewbottom mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self);
make.height.offset(TabHeight+20);
}];
[self drawBottomView:viewbottom];
}
return self;
}
-(void)drawBottomView:(UIView *)view
{
UIView *viewline = [[UIView alloc] init];
[viewline setBackgroundColor:RGBCOLOR(217, 217, 217)];
[self addSubview:viewline];
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.top.equalTo(view);
make.height.offset(1);
}];
UIButton *btpigai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 44)];
[btpigai setTitle:@"改写润色" forState:UIControlStateNormal];
[btpigai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btpigai.titleLabel setFont:[UIFont boldSystemFontOfSize:16]];
[btpigai.layer setMasksToBounds:YES];
[btpigai.layer setCornerRadius:5];
[view addSubview:btpigai];
[btpigai mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(view).offset(-20);
make.top.offset(10);
make.height.offset(44);
}];
[btpigai addTarget:self action:@selector(tiyanAction) forControlEvents:UIControlEventTouchUpInside];
[Tools changedView:btpigai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
}
-(void)drawInfoView:(UIView *)view
{
[view setBackgroundColor:[UIColor whiteColor]];
UIView *viewline = [[UIView alloc] init];
[viewline setBackgroundColor:RGBCOLOR(216, 216, 216)];
[view addSubview:viewline];
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.sizeOffset(CGSizeMake(41, 5));
make.centerX.equalTo(view);
make.top.offset(10);
}];
[viewline.layer setMasksToBounds:YES];
[viewline.layer setCornerRadius:2.5];
UIView *viewtap = [[UIView alloc] init];
[view addSubview:viewtap];
[viewtap mas_makeConstraints:^(MASConstraintMaker *make) {
make.center.equalTo(viewline);
make.width.offset(80);
make.height.offset(45);
}];
UIPanGestureRecognizer *panBig = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureAction:)];
[viewtap addGestureRecognizer:panBig];
StartKTXZPGDetailTabView *viewtop = [[StartKTXZPGDetailTabView alloc] init];
[view addSubview:viewtop];
[viewtop mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(view);
make.top.offset(30);
make.height.offset(40);
}];
viewtop.arrTitle = @[@"综合评价",@"分句点评"];
[viewtop setBackSelect:^(NSInteger tag) {
[self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH*tag, 0)];
[self showVC:tag];
}];
_viewtop = viewtop;
UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, UISCREEN_WIDTH, view.height-80)];
[scvback setPagingEnabled:YES];
[scvback setShowsHorizontalScrollIndicator:NO];
[view addSubview:scvback];
[scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*3, 0)];
[scvback setDelegate:self];
_scvbackinfo = scvback;
///
StartKTXZPGDetailZHView *viewzh = [StartKTXZPGDetailZHView new];
[scvback addSubview:viewzh];
[viewzh mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(0);
make.top.offset(0);
make.width.height.equalTo(scvback);
}];
///
}
- (void)panGestureAction:(UIPanGestureRecognizer *)pan
{
if(pan.state == UIGestureRecognizerStateChanged)
{
CGPoint transP = [pan translationInView:self];
float fmax = UISCREEN_HEIGHT-NavHeight-TabHeight-20-80;
if(self.viewback.top+transP.y>fmax)
{
self.viewback.top=fmax;
}
else if(self.viewback.top+transP.y<UISCREEN_HEIGHT*0.2)
{
self.viewback.top=UISCREEN_HEIGHT*0.2;
}
else
{
self.viewback.top+=transP.y;
}
[pan setTranslation:CGPointZero inView:self];
}
}
-(void)tiyanAction
{
}
-(void)showVC:(NSInteger)page
{
if(page==1)
{
if(!self.viewfj)
{
StartKTXZPGDetailFJView *viewfj = [StartKTXZPGDetailFJView new];
[self.scvbackinfo addSubview:viewfj];
[viewfj mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(UISCREEN_WIDTH);
make.top.offset(0);
make.width.height.equalTo(self.scvbackinfo);
}];
_viewfj = viewfj;
}
}
}
#pragma mark - UIScrollView
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
int ipage = scrollView.contentOffset.x/UISCREEN_WIDTH;
self.viewtop.selecttag = ipage;
[self showVC:ipage];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartPZXZViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartPZXZViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,35 @@
//
// StartPZXZViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartPZXZViewController.h"
#import "StartPZXZView.h"
@interface StartPZXZViewController ()
@end
@implementation StartPZXZViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
[self showNaviGationView:YES];
[self.view setBackgroundColor:[UIColor blackColor]];
StartPZXZView *view = [[StartPZXZView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
}
@end

View File

@ -0,0 +1,17 @@
//
// StartPZXZPageView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartPZXZPageView : UIView
@property (nonatomic , assign) CGSize yidongsize;
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,54 @@
//
// StartPZXZPageView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartPZXZPageView.h"
@interface StartPZXZPageView ()
///
@property (nonatomic , strong) UIScrollView *scvback;
///
@property (nonatomic , strong) UIImageView *imgvback;
@end
@implementation StartPZXZPageView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
[self setUserInteractionEnabled:NO];
UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT-TabHeight-123)];
[self addSubview:scvback];
[scvback setUserInteractionEnabled:NO];
[scvback setScrollEnabled:NO];
[scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*1.3, scvback.height*1.3)];
_scvback = scvback;
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_nomoxiangji"]];
[imgvback setContentMode:UIViewContentModeScaleAspectFit];
[scvback addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.equalTo(scvback).multipliedBy(1.3);
make.center.equalTo(scvback);
}];
_imgvback = imgvback;
}
return self;
}
///1 x y
-(void)setYidongsize:(CGSize)yidongsize
{
}
@end

View File

@ -0,0 +1,16 @@
//
// StartPZXZView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartPZXZView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,156 @@
//
// StartPZXZView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartPZXZView.h"
#import "StartPZXZPageView.h"
#import <CoreMotion/CoreMotion.h>
@interface StartPZXZView ()<UIScrollViewDelegate>
///
@property (nonatomic , strong) UIScrollView *scvback;
///
@property (nonatomic , strong) NSMutableArray *arrbtn;
@property (nonatomic , strong) NSMutableArray *arrView;
///
@property (nonatomic , strong) UIButton *btselect;
///
@property (nonatomic , strong) CMMotionManager *motionManager;
@end
@implementation StartPZXZView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
[self setBackgroundColor:[UIColor blackColor]];
UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT-TabHeight-123)];
[scvback setDelegate:self];
[self addSubview:scvback];
[scvback setPagingEnabled:YES];
[scvback setShowsHorizontalScrollIndicator:NO];
[scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*3, 0)];
_scvback = scvback;
if (@available(iOS 11.0, *)) {
scvback.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}else{
self.viewController.automaticallyAdjustsScrollViewInsets =NO;
}
self.arrView = [NSMutableArray new];
for(int i = 0 ; i < 3; i++)
{
StartPZXZPageView *viewitem = [StartPZXZPageView new];
[scvback addSubview:viewitem];
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.height.width.equalTo(scvback);
make.left.offset(UISCREEN_WIDTH*i);
}];
[self.arrView addObject:viewitem];
}
UIView *viewbottom = [[UIView alloc] init];
[self addSubview:viewbottom];
[viewbottom mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self);
make.top.equalTo(scvback.mas_bottom);
}];
[self drawBottomView:viewbottom];
[self tuoluo];
}
return self;
}
-(void)drawBottomView:(UIView *)view
{
float f_width = 90;
NSArray *arrtop = @[@"改写作文",@"拍题成文",@"拍照续写"];
UIView *viewback = [[UIView alloc] init];
[view addSubview:viewback];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.offset(0);
make.height.offset(60);
make.centerX.equalTo(view);
make.width.offset(arrtop.count*f_width);
}];
self.arrbtn = [NSMutableArray new];
for(int i = 0 ; i < arrtop.count;i++)
{
UIButton *btitem = [[UIButton alloc] init];
[btitem setTitle:arrtop[i] forState:UIControlStateNormal];
[btitem setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btitem setTitleColor:RGBCOLOR(255, 154, 18) forState:UIControlStateSelected];
[btitem.titleLabel setFont:[UIFont boldSystemFontOfSize:14]];
[viewback addSubview:btitem];
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.bottom.equalTo(viewback);
make.left.offset(f_width*i);
make.width.offset(f_width);
}];
[btitem setTag:i];
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
[self.arrbtn addObject:btitem];
if(i==0)
{
[btitem setSelected:YES];
self.btselect = btitem;
}
}
}
-(void)itemAction:(UIButton *)sender
{
if(sender.tag==self.btselect.tag)return;
self.btselect.selected = NO;
sender.selected = YES;
self.btselect = sender;
///
[self.scvback setContentOffset:CGPointMake(UISCREEN_WIDTH*sender.tag, 0) animated:YES];
}
#pragma mark - UIScrollView
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
NSInteger ipage = scrollView.contentOffset.x/UISCREEN_WIDTH;
if(ipage>self.arrbtn.count-1)ipage=self.arrbtn.count-1;
if(ipage<0)ipage=0;
self.btselect = self.arrbtn[ipage];
}
-(void)tuoluo
{
CMMotionManager *motionManager = [[ CMMotionManager alloc ] init ];
NSOperationQueue *queue = [[ NSOperationQueue alloc ] init ];
if (motionManager.accelerometerAvailable) {
motionManager.accelerometerUpdateInterval = 0.5 ;
motionManager.gyroUpdateInterval = 0.5 ;
[motionManager startAccelerometerUpdatesToQueue:queue withHandler:^(CMAccelerometerData * _Nullable accelerometerData, NSError * _Nullable error) {
if (error) {
[motionManager stopAccelerometerUpdates];
NSLog( @"error: %@" , error);
}
else {
// NSLog( @"x--> %.1f y--> %.1f" ,
// accelerometerData.acceleration.x,
// accelerometerData.acceleration.y);
StartPZXZPageView *viewitem = self.arrView[self.btselect.tag];
viewitem.yidongsize = CGSizeMake(accelerometerData.acceleration.x, accelerometerData.acceleration.y);
}
}];
}
else {
NSLog( @"This device has no accelerometer" );
}
_motionManager = motionManager;
}
-(void)stopMotion
{
[self.motionManager stopAccelerometerUpdates];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,41 @@
//
// StartZNXZViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZViewController.h"
#import "StartZNXZView.h"
@interface StartZNXZViewController ()
@end
@implementation StartZNXZViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
[self showNaviGationView:YES];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
[self.view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
StartZNXZView *view = [[StartZNXZView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,239 @@
//
// StartZNXZView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZView.h"
#import "StartZNXZKeysViewController.h"
@interface StartZNXZView ()
///
@property (nonatomic , strong) UIButton *btselect;
@end
@implementation StartZNXZView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UIImageView *imgvlog= [[UIImageView alloc] init];
[imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]];
[self addSubview:imgvlog];
[imgvlog mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.offset(50);
make.left.offset(14);
make.top.offset(KMagrinTop+22);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:[NSString stringWithFormat:@"初一、智能写作"]];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:16]];
[self addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvlog.mas_right).offset(12);
make.centerY.equalTo(imgvlog);
}];
UIView *viewback = [[UIView alloc] init];
[viewback setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewback];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.top.equalTo(imgvlog.mas_bottom).offset(18);
}];
[viewback.layer setMasksToBounds:YES];
[viewback.layer setCornerRadius:20];
[self drawInfoView:viewback];
UIButton *btnext = [[UIButton alloc] init];
[btnext setTitle:@"下一步" forState:UIControlStateNormal];
[btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btnext.titleLabel setFont:[UIFont systemFontOfSize:18]];
[btnext.layer setMasksToBounds:YES];
[btnext.layer setCornerRadius:25];
[btnext setBackgroundColor:RGBCOLOR(108, 119, 246)];
[self addSubview:btnext];
[btnext mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.height.offset(50);
make.bottom.equalTo(self).offset(-TabHeight-30);
}];
[btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside];
UIButton *btlast = [[UIButton alloc] init];
[btlast setTitle:@"上一步" forState:UIControlStateNormal];
[btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btlast.titleLabel setFont:[UIFont systemFontOfSize:14]];
[self addSubview:btlast];
[btlast mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.height.equalTo(btnext);
make.top.equalTo(btnext.mas_bottom);
}];
[btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside];
}
return self;
}
-(void)drawInfoView:(UIView *)view
{
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:@"作文标题"];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont fontWithName:@"zihunbiantaoti" size:24]];
[view addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(30);
make.top.offset(20);
}];
UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)];
[imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]];
[view addSubview:imgvico];
[view sendSubviewToBack:imgvico];
[imgvico mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(lbname);
make.bottom.equalTo(lbname).offset(4);
make.size.sizeOffset(CGSizeMake(84, 14));
}];
UIButton *btref = [[UIButton alloc] init];
[btref setTitle:@"换一批" forState:UIControlStateNormal];
[btref setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btref.titleLabel setFont:[UIFont systemFontOfSize:14]];
[btref setImage:[UIImage imageNamed:@"yd_ref"] forState:UIControlStateNormal];
[view addSubview:btref];
[btref mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(lbname);
make.right.equalTo(view).offset(-10);
make.height.offset(30);
make.width.offset(80);
}];
[btref addTarget:self action:@selector(refAction) forControlEvents:UIControlEventTouchUpInside];
[btref setIconInLeftWithSpacing:2];
UILabel *lbts = [[UILabel alloc] init];
[lbts setText:@"这里有些初一学段,优秀的作文题目供你参考:"];
[lbts setTextColor:RGBCOLOR(51, 51, 51)];
[lbts setTextAlignment:NSTextAlignmentLeft];
[lbts setFont:[UIFont systemFontOfSize:16]];
[lbts setNumberOfLines:0];
[view addSubview:lbts];
[lbts mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(view).offset(-20);
make.top.equalTo(lbname.mas_bottom).offset(15);
}];
UIView *viewitems= [[UIView alloc] init];
[view addSubview:viewitems];
[viewitems mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(lbts);
make.top.equalTo(lbts.mas_bottom).offset(15);
}];
[self drawItemsVIew:viewitems];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(viewitems).offset(20);
}];
}
-(void)drawItemsVIew:(UIView *)view
{
NSArray *arrkey = @[@"我心目中的英雄",@"我的校园生活",@"我的家庭和亲人",@"我的理想和梦想",@"我经历的一件有趣的事",@"我喜欢的动物或植物"];
float f_width = UISCREEN_WIDTH-75;
float ftop = 0;
float fleft = 0;
UIView *viewlast = nil;
for(int i = 0 ; i < arrkey.count; i++)
{
float f_w = [Tools getWidthWithText:arrkey[i] height:20 font:16]+32;
if((fleft+f_w)>f_width)
{
ftop+=46;
fleft = 0;
}
if(f_w>f_width)f_w = f_width;
UIView *viewitem = [[UIView alloc] init];
[viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)];
[view addSubview:viewitem];
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.offset(f_w);
make.height.offset(36);
make.top.offset(ftop);
make.left.offset(fleft);
}];
[viewitem.layer setMasksToBounds:YES];
[viewitem.layer setCornerRadius:18];
viewlast = viewitem;
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:arrkey[i]];
[lbname setTextColor:RGBCOLOR(60, 60, 60)];
[lbname setTextAlignment:NSTextAlignmentCenter];
[lbname setFont:[UIFont systemFontOfSize:16]];
[viewitem addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(15);
make.right.equalTo(viewitem).offset(-15);
make.centerY.equalTo(viewitem);
}];
[lbname setTag:1000];
UIButton *btitem = [[UIButton alloc] init];
[viewitem addSubview:btitem];
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(viewitem);
}];
[btitem setTag:i];
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
if(i==0)
{
self.btselect = btitem;
[viewitem setBackgroundColor:RGBCOLOR(108, 119, 246)];
[lbname setTextColor:[UIColor whiteColor]];
}
fleft+=f_w+10;
}
if(viewlast)
{
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(viewlast);
}];
}
}
-(void)itemAction:(UIButton *)sender
{
if(sender.tag == self.btselect.tag)return;
[self.btselect.superview setBackgroundColor:RGBCOLOR(240, 241, 254)];
UILabel *lbs = [self.btselect.superview viewWithTag:1000];
[lbs setTextColor:RGBCOLOR(60, 60, 60)];
self.btselect = sender;
[self.btselect.superview setBackgroundColor:RGBCOLOR(108, 119, 246)];
UILabel *lbst = [self.btselect.superview viewWithTag:1000];
[lbst setTextColor:[UIColor whiteColor]];
}
-(void)refAction
{
}
-(void)nextAction
{
StartZNXZKeysViewController *vc = [StartZNXZKeysViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
-(void)lastAction
{
[self.viewController.navigationController popViewControllerAnimated:YES];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZKeysViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZKeysViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,41 @@
//
// StartZNXZKeysViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZKeysViewController.h"
#import "StartZNXZKeysView.h"
@interface StartZNXZKeysViewController ()
@end
@implementation StartZNXZKeysViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
[self showNaviGationView:YES];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
[self.view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
StartZNXZKeysView *view = [[StartZNXZKeysView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZKeysView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZKeysView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,389 @@
//
// StartZNXZKeysView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZKeysView.h"
#import "StartZNXZSiLuViewController.h"
@interface StartZNXZKeysView ()
///
@property (nonatomic , strong) UIView *viewselect;
///
@property (nonatomic , strong) NSMutableArray *arrSelect;
@end
@implementation StartZNXZKeysView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UIImageView *imgvlog= [[UIImageView alloc] init];
[imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]];
[self addSubview:imgvlog];
[imgvlog mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.offset(50);
make.left.offset(14);
make.top.offset(KMagrinTop+22);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:[NSString stringWithFormat:@"初一、智能写作、我心目中的英雄、热爱祖国"]];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setNumberOfLines:2];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:16]];
[self addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvlog.mas_right).offset(12);
make.right.equalTo(self).offset(-14);
make.top.equalTo(imgvlog.mas_centerY).offset(-8);
}];
UIView *viewback = [[UIView alloc] init];
[self addSubview:viewback];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.top.equalTo(imgvlog.mas_bottom).offset(18);
make.bottom.equalTo(self).offset(-TabHeight-90);
}];
[self drawInfoView:viewback];
UIButton *btnext = [[UIButton alloc] init];
[btnext setTitle:@"下一步" forState:UIControlStateNormal];
[btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btnext.titleLabel setFont:[UIFont systemFontOfSize:18]];
[btnext.layer setMasksToBounds:YES];
[btnext.layer setCornerRadius:25];
[btnext setBackgroundColor:RGBCOLOR(108, 119, 246)];
[self addSubview:btnext];
[btnext mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.height.offset(50);
make.bottom.equalTo(self).offset(-TabHeight-30);
}];
[btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside];
UIButton *btlast = [[UIButton alloc] init];
[btlast setTitle:@"上一步" forState:UIControlStateNormal];
[btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btlast.titleLabel setFont:[UIFont systemFontOfSize:14]];
[self addSubview:btlast];
[btlast mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.height.equalTo(btnext);
make.top.equalTo(btnext.mas_bottom);
}];
[btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside];
}
return self;
}
-(void)drawInfoView:(UIView *)view
{
UIScrollView *scvback = [[UIScrollView alloc] init];
[view addSubview:scvback];
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.width.height.equalTo(view);
}];
UIView *viewjl = [[UIView alloc] init];
[viewjl.layer setMasksToBounds:YES];
[viewjl.layer setCornerRadius:20];
[viewjl setBackgroundColor:[UIColor whiteColor]];
[scvback addSubview:viewjl];
[viewjl mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.width.equalTo(scvback);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:@"写作要求"];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont fontWithName:@"zihunbiantaoti" size:24]];
[viewjl addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(30);
make.top.offset(20);
}];
UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)];
[imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]];
[viewjl addSubview:imgvico];
[viewjl sendSubviewToBack:imgvico];
[imgvico mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(lbname);
make.bottom.equalTo(lbname).offset(4);
make.size.sizeOffset(CGSizeMake(84, 14));
}];
UIButton *btref = [[UIButton alloc] init];
[btref setTitle:@"换一批" forState:UIControlStateNormal];
[btref setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btref.titleLabel setFont:[UIFont systemFontOfSize:14]];
[btref setImage:[UIImage imageNamed:@"yd_ref"] forState:UIControlStateNormal];
[viewjl addSubview:btref];
[btref mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(lbname);
make.right.equalTo(viewjl).offset(-10);
make.height.offset(30);
make.width.offset(80);
}];
[btref addTarget:self action:@selector(refAction) forControlEvents:UIControlEventTouchUpInside];
[btref setIconInLeftWithSpacing:2];
UILabel *lbts = [[UILabel alloc] init];
[lbts setText:@"根据你的作文题目,有以下写作要求供你参考:"];
[lbts setTextColor:RGBCOLOR(51, 51, 51)];
[lbts setTextAlignment:NSTextAlignmentLeft];
[lbts setFont:[UIFont systemFontOfSize:16]];
[lbts setNumberOfLines:0];
[viewjl addSubview:lbts];
[lbts mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(viewjl).offset(-20);
make.top.equalTo(lbname.mas_bottom).offset(15);
}];
UIView *viewitems= [[UIView alloc] init];
[viewjl addSubview:viewitems];
[viewitems mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(lbts);
make.top.equalTo(lbts.mas_bottom).offset(15);
}];
[self drawItemsVIew:viewitems];
UIView *viewselect = [[UIView alloc] init];
[viewjl addSubview:viewselect];
[viewselect mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(viewjl);
make.top.equalTo(viewitems.mas_bottom);
make.height.offset(0);
}];
_viewselect = viewselect;
[viewjl mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(viewselect).offset(20);
}];
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(viewjl).offset(10);
}];
}
-(void)drawItemsVIew:(UIView *)view
{
NSArray *arrkey = @[@"热爱祖国",@"最求卓业",@"勇气",@"领导力",@"智慧",@"坚韧不拔"];
float f_width = UISCREEN_WIDTH-75;
float ftop = 0;
float fleft = 0;
UIView *viewlast = nil;
for(int i = 0 ; i < arrkey.count; i++)
{
float f_w = [Tools getWidthWithText:arrkey[i] height:20 font:16]+32;
if((fleft+f_w)>f_width)
{
ftop+=46;
fleft = 0;
}
if(f_w>f_width)f_w = f_width;
UIView *viewitem = [[UIView alloc] init];
[viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)];
[view addSubview:viewitem];
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.offset(f_w);
make.height.offset(36);
make.top.offset(ftop);
make.left.offset(fleft);
}];
[viewitem.layer setMasksToBounds:YES];
[viewitem.layer setCornerRadius:18];
viewlast = viewitem;
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:arrkey[i]];
[lbname setTextColor:RGBCOLOR(60, 60, 60)];
[lbname setTextAlignment:NSTextAlignmentCenter];
[lbname setFont:[UIFont systemFontOfSize:16]];
[viewitem addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(15);
make.right.equalTo(viewitem).offset(-15);
make.centerY.equalTo(viewitem);
}];
[lbname setTag:1000];
UIButton *btitem = [[UIButton alloc] init];
[viewitem addSubview:btitem];
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(viewitem);
}];
[btitem setTag:i];
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
fleft+=f_w+10;
}
if(viewlast)
{
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(viewlast);
}];
}
}
-(void)drawSelectView
{
for(UIView *view in self.viewselect.subviews)
{
[view removeFromSuperview];
}
UIImageView *imgvback = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 2)];
[self.viewselect addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.viewselect);
make.top.offset(15);
make.height.offset(2);
}];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
UIImage *image = [Tools drawLineImageSize:CGSizeMake(UISCREEN_WIDTH-40, 2) line_W:4 line_H:2 color:RGBCOLOR(238, 238, 238)];
dispatch_async(dispatch_get_main_queue(), ^{
imgvback.image = image;
});
});
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:@"已选要求:"];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont systemFontOfSize:16]];
[self.viewselect addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(18);
make.top.equalTo(imgvback.mas_bottom).offset(15);
}];
float f_width = UISCREEN_WIDTH-86;
float ftop = 67;
float fleft = 18;
UIView *viewlast = nil;
for(int i = 0 ; i < self.arrSelect.count; i++)
{
float f_w = [Tools getWidthWithText:self.arrSelect[i] height:20 font:14]+49;
if((fleft+f_w)>f_width)
{
ftop+=40;
fleft = 18;
}
if(f_w>f_width)f_w = f_width;
UIView *viewitem = [[UIView alloc] init];
[viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)];
[self.viewselect addSubview:viewitem];
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.offset(f_w);
make.height.offset(30);
make.top.offset(ftop);
make.left.offset(fleft);
}];
[viewitem.layer setMasksToBounds:YES];
[viewitem.layer setCornerRadius:15];
[viewitem.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor];
[viewitem.layer setBorderWidth:1];
viewlast = viewitem;
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:self.arrSelect[i]];
[lbname setTextColor:RGBCOLOR(108, 119, 246)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont systemFontOfSize:14]];
[viewitem addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(15);
make.right.equalTo(viewitem).offset(-32);
make.centerY.equalTo(viewitem);
}];
UIButton *btdel = [[UIButton alloc] init];
[btdel setImage:[UIImage imageNamed:@"yd_x"] forState:UIControlStateNormal];
[viewitem addSubview:btdel];
[btdel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.bottom.equalTo(viewitem);
make.width.offset(30);
make.right.equalTo(viewitem).offset(-2);
}];
[btdel setTag:i];
[btdel addTarget:self action:@selector(delAction:) forControlEvents:UIControlEventTouchUpInside];
fleft+=f_w+10;
}
if(viewlast)
{
[self.viewselect setHidden:NO];
[self.viewselect mas_updateConstraints:^(MASConstraintMaker *make) {
make.height.offset(ftop+50);
}];
}
else
{
[self.viewselect setHidden:YES];
[self.viewselect mas_updateConstraints:^(MASConstraintMaker *make) {
make.height.offset(0);
}];
}
}
-(void)itemAction:(UIButton *)sender
{
[sender.superview setBackgroundColor:RGBCOLOR(108, 119, 246)];
UILabel *lbst = [sender.superview viewWithTag:1000];
[lbst setTextColor:[UIColor whiteColor]];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[sender.superview setBackgroundColor:RGBCOLOR(240, 241, 254)];
[lbst setTextColor:RGBCOLOR(60, 60, 60)];
});
if(!self.arrSelect)
{
self.arrSelect = [NSMutableArray new];
}
if(![self.arrSelect containsObject:lbst.text])
{
if(self.arrSelect.count>=3)
{
[HXHud showMessage:@"最多添加3个关键词" afterDelayType:0];
return;
}
[self.arrSelect addObject:lbst.text];
[self drawSelectView];
}
else
{
[HXHud showMessage:@"请勿添加重复数据" afterDelayType:0];
}
}
-(void)delAction:(UIButton *)sender
{
[self.arrSelect removeObjectAtIndex:sender.tag];
[self drawSelectView];
}
-(void)refAction
{
}
-(void)nextAction
{
StartZNXZSiLuViewController *vc = [StartZNXZSiLuViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
-(void)lastAction
{
[self.viewController.navigationController popViewControllerAnimated:YES];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZSiLuViewController.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZSiLuViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,41 @@
//
// StartZNXZSiLuViewController.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZSiLuViewController.h"
#import "StartZNXZSiLuView.h"
@interface StartZNXZSiLuViewController ()
@end
@implementation StartZNXZSiLuViewController
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleDefault;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
[self showNaviGationView:YES];
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];
[self.view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
StartZNXZSiLuView *view = [[StartZNXZSiLuView alloc] init];
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
}
@end

View File

@ -0,0 +1,16 @@
//
// StartZNXZSiLuView.h
// ProductApp
//
// Created by 工作 on 2024/9/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface StartZNXZSiLuView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,305 @@
//
// StartZNXZSiLuView.m
// ProductApp
//
// Created by on 2024/9/23.
//
#import "StartZNXZSiLuView.h"
typedef void(^StartZNXZSiLuViewDrawEndBack)(UIView *viewlast);
@interface StartZNXZSiLuView ()<UIScrollViewDelegate>
///
@property (nonatomic , strong) UIView *viewback;
///
@property (nonatomic , strong) UIScrollView *scvback;
@property (nonatomic , assign) BOOL isDragging;
///
@property (nonatomic , strong) MASConstraint *scrollBottom;
@property (nonatomic , assign) BOOL isdrawEnd;
@end
@implementation StartZNXZSiLuView
-(id)initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame])
{
UIImageView *imgvlog= [[UIImageView alloc] init];
[imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]];
[self addSubview:imgvlog];
[imgvlog mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.offset(50);
make.left.offset(14);
make.top.offset(KMagrinTop+22);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:[NSString stringWithFormat:@"初一、智能写作、我心目中的英雄、热爱祖国"]];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setNumberOfLines:2];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:16]];
[self addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvlog.mas_right).offset(12);
make.right.equalTo(self).offset(-14);
make.top.equalTo(imgvlog.mas_centerY).offset(-8);
}];
UIView *viewback = [[UIView alloc] init];
[viewback setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewback];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(20);
make.right.equalTo(self).offset(-20);
make.top.equalTo(imgvlog.mas_bottom).offset(18);
make.height.offset(UISCREEN_HEIGHT-TabHeight-KMagrinTop-140);
}];
[viewback.layer setMasksToBounds:YES];
[viewback.layer setCornerRadius:20];
_viewback = viewback;
[self drawInfoView:viewback];
UIView *viewbottom = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, TabHeight+40)];
[viewbottom setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewbottom];
[viewbottom mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self);
make.height.offset(TabHeight+40);
}];
[self drawBottomView:viewbottom];
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewbottom.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)];
// layer
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = viewbottom.bounds;
//
maskLayer.path = maskPath.CGPath;
viewbottom.layer.mask = maskLayer;
}
return self;
}
-(void)drawBottomView:(UIView *)view
{
UIButton *btchange = [[UIButton alloc] init];
[btchange setTitle:@"换个思路" forState:UIControlStateNormal];
[btchange setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal];
[btchange.titleLabel setFont:[UIFont boldSystemFontOfSize:18]];
[btchange.layer setMasksToBounds:YES];
[btchange.layer setCornerRadius:20];
[btchange.layer setBorderWidth:1];
[btchange.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor];
[view addSubview:btchange];
[btchange mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(30);
make.top.offset(20);
make.height.offset(40);
make.width.offset(120);
}];
[btchange setTag:0];
[btchange addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside];
UIButton *btcreate = [[UIButton alloc] init];
[btcreate setTitle:@"思路成文" forState:UIControlStateNormal];
[btcreate setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btcreate.titleLabel setFont:[UIFont boldSystemFontOfSize:18]];
[btcreate.layer setMasksToBounds:YES];
[btcreate.layer setCornerRadius:20];
[btcreate setBackgroundColor:RGBCOLOR(108, 119, 246)];
[view addSubview:btcreate];
[btcreate mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(btchange.mas_right).offset(12);
make.top.height.equalTo(btchange);
make.right.equalTo(view).offset(-30);
}];
[btcreate setTag:1];
[btcreate addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside];
}
-(void)drawTitleView:(UIView *)view title:(NSString *)title
{
UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)];
[view addSubview:viewline];
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(17);
make.centerY.equalTo(view);
make.size.sizeOffset(CGSizeMake(7, 17));
}];
[viewline.layer setMasksToBounds:YES];
[viewline.layer setCornerRadius:3.5];
[Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:title];
[lbname setTextColor:RGBCOLOR(26, 26, 17)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:18]];
[view addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(view);
make.left.equalTo(viewline.mas_right).offset(6);
}];
}
///
-(void)drawInfoView:(UIView *)view
{
UIScrollView *scvback = [[UIScrollView alloc] init];
[scvback setShowsVerticalScrollIndicator:NO];
[view addSubview:scvback];
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.offset(0);
make.width.equalTo(view);
make.height.equalTo(view);
}];
[scvback setDelegate:self];
_scvback = scvback;
[self startDraw:@[@{@"title":@"题材",@"values":@[@""]},
@{@"title":@"开头",@"values":@[@""]},
@{@"title":@"中间",@"values":@[@"",@"",@""]},
@{@"title":@"结尾",@"values":@[@""]}] tag:0 lastValue:nil];
}
-(void)startDraw:(NSArray *)arrtemp tag:(int)tag lastValue:(UIView *)lastValue
{
NSDictionary *dic = arrtemp[tag];
[self drawSubItemsView:self.scvback title:[dic objectForKey:@"title"] values:[dic objectForKey:@"values"] lastview:lastValue back:^(UIView *viewlast) {
if(tag<arrtemp.count-1)
{
[self startDraw:arrtemp tag:tag+1 lastValue:viewlast];
}
else
{
self.isdrawEnd = YES;
}
}];
}
-(void)drawSubItemsView:(UIView *)view title:(NSString *)title values:(NSArray *)values lastview:(UIView *)lastview back:(StartZNXZSiLuViewDrawEndBack)backvalue
{
UIView *viewtop= [[UIView alloc] init];
[view addSubview:viewtop];
[viewtop mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.width.equalTo(view);
if(lastview)
{
make.top.equalTo(lastview.mas_bottom).offset(18);
}
else
{
make.top.offset(24);
}
make.height.offset(20);
}];
[self drawTitleView:viewtop title:title];
[self drawSUbItemView:view values:values lastview:viewtop tag:0 back:^(UIView *viewlast) {
backvalue(viewlast);
}];
}
-(void)drawSUbItemView:(UIView *)view values:(NSArray *)values lastview:(UIView *)lastview tag:(int)tag back:(StartZNXZSiLuViewDrawEndBack)backvalue
{
UIView *viewtc = [[UIView alloc] init];
[view addSubview:viewtc];
[viewtc mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(15);
make.width.equalTo(view).offset(-30);
make.top.equalTo(lastview.mas_bottom).offset(10);
}];
__strong UIView *viewlasttmep = viewtc;
[self drawItemTextView:viewtc value:@"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。" back:^(UIView *viewlast) {
///
if(tag<values.count-1)
{
[self drawSUbItemView:view values:values lastview:viewlasttmep tag:tag+1 back:backvalue];
}
else
{
backvalue(viewlasttmep);
}
}];
if(self.scrollBottom)
{
[self.scrollBottom uninstall];
self.scrollBottom = nil;
}
[view mas_makeConstraints:^(MASConstraintMaker *make) {
self.scrollBottom = make.bottom.equalTo(viewtc).offset(10);
}];
}
-(void)drawItemTextView:(UIView *)view value:(NSString *)value back:(StartZNXZSiLuViewDrawEndBack)backvalue
{
[view setBackgroundColor:RGBCOLOR(240, 241, 254)];
[view.layer setMasksToBounds:YES];
[view.layer setCornerRadius:12];
ViewLable *lbwz = [[ViewLable alloc] init];
[view addSubview:lbwz];
[lbwz mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.offset(10);
make.right.equalTo(view).offset(-10);
}];
lbwz.textColor = RGBCOLOR(109, 109, 109);
lbwz.textFont = [UIFont systemFontOfSize:16];
lbwz.fspeed = 0.02;
lbwz.strValue = value;
[lbwz setBackHeight:^(float fheight, BOOL isend) {
if(isend)
{
backvalue(nil);
}
if(self.isDragging==NO)
{
if(self.scvback.contentSize.height-self.scvback.height>0)
{
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height) animated:NO];
}
}
}];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(lbwz).offset(10);
}];
}
-(void)bottomAction:(UIButton *)sender
{
if(self.isdrawEnd==NO)
{
[HXHud showMessage:@"请等待写作思路完成" afterDelayType:0];
return;
}
if(sender.tag==0)
{
self.isdrawEnd = NO;
[self.scvback removeFromSuperview];
self.scvback = nil;
self.scrollBottom = nil;
[self drawInfoView:self.viewback];
}
else
{///(45*1.028+7)*x 53 61 69 77 86 95 104 113 123 133 143 154 165 176
///3 1 1
}
}
#pragma mark - UIScrollView
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
self.isDragging = YES;
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
self.isDragging = NO;
}
@end

View File

@ -31,7 +31,7 @@
[self.view addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.bottom.equalTo(self.view);
make.top.offset(0);
make.top.offset(NavHeight);
}];
}

View File

@ -10,6 +10,8 @@
NS_ASSUME_NONNULL_BEGIN
typedef void(^StartKTXZPGDetailTabViewBack)(NSInteger tag);
@interface StartKTXZPGDetailTabView : UIView
///
@property (nonatomic , strong) NSArray *arrTitle;
@property (nonatomic , assign) int selecttag;
///
@property (nonatomic , strong) StartKTXZPGDetailTabViewBack backSelect;

View File

@ -23,45 +23,52 @@
{
if(self = [super initWithFrame:frame])
{
self.arrbtn = [NSMutableArray new];
float f_width = UISCREEN_WIDTH/3.0;
NSArray *arr = @[@"综合评价",@"分句点评",@"写作思路"];
for(int i = 0 ; i < arr.count; i++)
{
UIButton *btitem = [[UIButton alloc] init];
[btitem setTitle:arr[i] forState:UIControlStateNormal];
[btitem setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btitem setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected];
[btitem.titleLabel setFont:[UIFont systemFontOfSize:14]];
[self addSubview:btitem];
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.bottom.equalTo(self);
make.left.offset(f_width*i);
make.width.offset(f_width);
}];
[btitem setTag:i];
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
[self.arrbtn addObject:btitem];
if(i==0)
{
self.btselect = btitem;
[self.btselect setSelected:YES];
[btitem.titleLabel setFont:[UIFont systemFontOfSize:18]];
}
}
UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)];
[imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]];
[self addSubview:imgvico];
[self sendSubviewToBack:imgvico];
_imgvico = imgvico;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[imgvico setCenterX:self.btselect.centerX];
imgvico.centerY = self.btselect.centerY+5;
});
}
return self;
}
-(void)setArrTitle:(NSArray *)arrTitle
{
if(arrTitle.count==0)return;
_arrTitle = arrTitle;
self.arrbtn = [NSMutableArray new];
float f_width = UISCREEN_WIDTH/arrTitle.count;
NSArray *arr = arrTitle;
for(int i = 0 ; i < arr.count; i++)
{
UIButton *btitem = [[UIButton alloc] init];
[btitem setTitle:arr[i] forState:UIControlStateNormal];
[btitem setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
[btitem setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected];
[btitem.titleLabel setFont:[UIFont systemFontOfSize:14]];
[self addSubview:btitem];
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.bottom.equalTo(self);
make.left.offset(f_width*i);
make.width.offset(f_width);
}];
[btitem setTag:i];
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
[self.arrbtn addObject:btitem];
if(i==0)
{
self.btselect = btitem;
[self.btselect setSelected:YES];
[btitem.titleLabel setFont:[UIFont systemFontOfSize:18]];
}
}
UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)];
[imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]];
[self addSubview:imgvico];
[self sendSubviewToBack:imgvico];
_imgvico = imgvico;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[imgvico setCenterX:self.btselect.centerX];
imgvico.centerY = self.btselect.centerY+5;
});
}
-(void)itemAction:(UIButton *)sender
{
if(sender.tag==self.btselect.tag)return;

View File

@ -21,6 +21,11 @@
///
@property (nonatomic , strong) UIScrollView *scvbackinfo;
///
@property (nonatomic , strong) StartKTXZPGDetailFJView *viewfj;
///
@property (nonatomic , strong) StartKTXZPGDetailXZView *viewxz;
@end
@implementation StartKTXZPGDetailView
@ -49,7 +54,7 @@
make.bottom.equalTo(imgvback).offset(20);
}];
UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.3, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.7-TabHeight-20)];
UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)];
[viewback setBackgroundColor:[UIColor whiteColor]];
[self addSubview:viewback];
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewback.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)];
@ -76,6 +81,14 @@
}
-(void)drawBottomView:(UIView *)view
{
UIView *viewline = [[UIView alloc] init];
[viewline setBackgroundColor:RGBCOLOR(217, 217, 217)];
[self addSubview:viewline];
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.top.equalTo(view);
make.height.offset(1);
}];
UIButton *btpigai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 44)];
[btpigai setTitle:@"立即体验正式功能" forState:UIControlStateNormal];
[btpigai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
@ -124,12 +137,14 @@
make.top.offset(30);
make.height.offset(40);
}];
viewtop.arrTitle = @[@"综合评价",@"分句点评",@"写作思路"];
[viewtop setBackSelect:^(NSInteger tag) {
[self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH*tag, 0)];
[self showVC:tag];
}];
_viewtop = viewtop;
UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 70, UISCREEN_WIDTH, view.height-70)];
UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, UISCREEN_WIDTH, view.height-80)];
[scvback setPagingEnabled:YES];
[scvback setShowsHorizontalScrollIndicator:NO];
[view addSubview:scvback];
@ -145,23 +160,6 @@
make.top.offset(0);
make.width.height.equalTo(scvback);
}];
StartKTXZPGDetailFJView *viewfj = [StartKTXZPGDetailFJView new];
[scvback addSubview:viewfj];
[viewfj mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(UISCREEN_WIDTH);
make.top.offset(0);
make.width.height.equalTo(scvback);
}];
StartKTXZPGDetailXZView *viewxz = [StartKTXZPGDetailXZView new];
[scvback addSubview:viewxz];
[viewxz mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(UISCREEN_WIDTH*2);
make.top.offset(0);
make.width.height.equalTo(scvback);
}];
///
}
- (void)panGestureAction:(UIPanGestureRecognizer *)pan
@ -174,9 +172,9 @@
{
self.viewback.top=fmax;
}
else if(self.viewback.top+transP.y<UISCREEN_HEIGHT*0.3)
else if(self.viewback.top+transP.y<UISCREEN_HEIGHT*0.2)
{
self.viewback.top=UISCREEN_HEIGHT*0.3;
self.viewback.top=UISCREEN_HEIGHT*0.2;
}
else
{
@ -188,11 +186,43 @@
-(void)tiyanAction
{
}
-(void)showVC:(NSInteger)page
{
if(page==1)
{
if(!self.viewfj)
{
StartKTXZPGDetailFJView *viewfj = [StartKTXZPGDetailFJView new];
[self.scvbackinfo addSubview:viewfj];
[viewfj mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(UISCREEN_WIDTH);
make.top.offset(0);
make.width.height.equalTo(self.scvbackinfo);
}];
_viewfj = viewfj;
}
}
else if (page==2)
{
if(!self.viewxz)
{
StartKTXZPGDetailXZView *viewxz = [StartKTXZPGDetailXZView new];
[self.scvbackinfo addSubview:viewxz];
[viewxz mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(UISCREEN_WIDTH*2);
make.top.offset(0);
make.width.height.equalTo(self.scvbackinfo);
}];
_viewxz = viewxz;
}
}
}
#pragma mark - UIScrollView
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
int ipage = scrollView.contentOffset.x/UISCREEN_WIDTH;
self.viewtop.selecttag = ipage;
[self showVC:ipage];
}
@end

View File

@ -95,9 +95,22 @@ typedef void(^backenddraw)(void);
make.left.right.equalTo(viewback);
make.top.equalTo(viewstartself.mas_bottom);
}];
__strong UIView *viewstartself = viewcenter;
[self drawCenterView:viewcenter back:^{
///
UIView *viewbottom = [[UIView alloc] init];
[viewback addSubview:viewbottom];
[viewbottom mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(viewback);
make.top.equalTo(viewstartself.mas_bottom);
}];
[self drawEndView:viewbottom back:^{
}];
[viewbottomtr uninstall];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
viewbottomtr = make.bottom.equalTo(viewbottom);
}];
}];
[viewbottomtr uninstall];
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
@ -133,6 +146,8 @@ typedef void(^backenddraw)(void);
}];
UIImageView *imgvline = [[UIImageView alloc] initWithFrame:CGRectMake(31, 24, 2, 3000)];
[imgvline setContentMode:UIViewContentModeScaleAspectFill];
[imgvline setClipsToBounds:YES];
[view addSubview:imgvline];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
UIImage *imageline = [Tools drawLineImageSize:CGSizeMake(2, 3000) line_W:5 line_H:1 color:RGBCOLOR(42, 211, 237)];
@ -142,11 +157,143 @@ typedef void(^backenddraw)(void);
});
///
[self drawCenterArr:@[@"",@"",@"",@"",@"",@"",@""] tag:0 superView:view lastView:lbname bottomCon:nil back:^{
backvalue();
imgvline.height = view.height-24;
}];
}
-(void)drawCenterArr:(NSArray *)arr tag:(int)tag superView:(UIView *)view lastView:(UIView *)lastview bottomCon:(MASConstraint *)bottomCon back:(backenddraw)backvalue
{
UIView *viewitem = [[UIView alloc] init];
[view addSubview:viewitem];
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(58);
make.right.equalTo(view.mas_right).offset(-15);
make.top.equalTo(lastview.mas_bottom).offset(8);
}];
__block MASConstraint *tempbottom;
__block int temptag = tag;
[self drawCenterItemView:viewitem tag:tag value:@"描绘早晨的场景:运用细节描绘,如“熙攘的人群、校门口的敬礼仪式”,体现新环境的秩序与规矩,象征着成长的仪式感。" back:^{
temptag+=1;
if(temptag<arr.count)
{
[self drawCenterArr:@[@"",@"",@"",@"",@"",@"",@""] tag:temptag superView:view lastView:viewitem bottomCon:tempbottom back:backvalue];
}
else
{
backvalue();
}
}];
if(bottomCon)
{
[bottomCon uninstall];
}
[view mas_makeConstraints:^(MASConstraintMaker *make) {
tempbottom = make.bottom.equalTo(viewitem);
}];
}
-(void)drawCenterItemView:(UIView *)view tag:(int)tag value:(NSString *)value back:(backenddraw)backvalue
{
NSString *strtt = [NSString stringWithFormat:@"第%@段落",[self getDuanLuoName:tag]];
float f_w = [Tools getWidthWithText:strtt height:20 font:14]+20;
UIView *viewtt = [[UIView alloc] initWithFrame:CGRectMake(0, 0, f_w, 30)];
[view addSubview:viewtt];
[viewtt mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.offset(0);
make.height.offset(30);
make.width.offset(f_w);
}];
[viewtt.layer setMasksToBounds:YES];
[viewtt.layer setCornerRadius:4];
[Tools changedView:viewtt colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(136, 238, 118).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
UILabel *lbname = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, f_w, 30)];
[lbname setTextColor:[UIColor whiteColor]];
[lbname setTextAlignment:NSTextAlignmentCenter];
[lbname setFont:[UIFont systemFontOfSize:14]];
[viewtt addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.center.equalTo(viewtt);
}];
[lbname setText:strtt];
ViewLable *lbwz = [[ViewLable alloc] init];
[view addSubview:lbwz];
[lbwz mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(viewtt);
make.top.equalTo(viewtt.mas_bottom).offset(8);
make.right.equalTo(view);
}];
lbwz.textColor = RGBCOLOR(61, 61, 61);
lbwz.textFont = [UIFont systemFontOfSize:15];
lbwz.fspeed = 0.02;
lbwz.strValue = value;
[lbwz setBackHeight:^(float fheight, BOOL isend) {
if(isend)
{
backvalue();
}
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)];
}];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(lbwz).offset(12);
}];
}
-(void)drawEndView:(UIView *)view back:(backenddraw)backvalue
{
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_detail_jy_l"]];
[view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.offset(24);
make.left.offset(20);
make.top.offset(0);
}];
UILabel *lbname = [[UILabel alloc] init];
[lbname setText:@"结尾"];
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
[lbname setTextAlignment:NSTextAlignmentLeft];
[lbname setFont:[UIFont boldSystemFontOfSize:18]];
[view addSubview:lbname];
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvback.mas_right).offset(14);
make.centerY.equalTo(imgvback);
}];
ViewLable *lbwz = [[ViewLable alloc] init];
[view addSubview:lbwz];
[lbwz mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(lbname);
make.top.equalTo(lbname.mas_bottom).offset(8);
make.right.equalTo(view).offset(-15);
}];
lbwz.textColor = RGBCOLOR(61, 61, 61);
lbwz.textFont = [UIFont systemFontOfSize:15];
lbwz.fspeed = 0.02;
lbwz.strValue = @"以充满希望的语调收束,如“那首温暖的掌声和老师的微笑,成为了我心中永恒的记忆,标志着我人生的崭新篇章正式开启。”通过这种升华,结束全文,给读者留下深刻印象。";
[lbwz setBackHeight:^(float fheight, BOOL isend) {
if(isend)
{
backvalue();
}
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)];
}];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(lbwz).offset(30);
}];
}
-(void)drawTopView:(UIView *)view back:(backenddraw)backvalue
{
UIImageView *imgvback = [[UIImageView alloc] init];
@ -170,6 +317,8 @@ typedef void(^backenddraw)(void);
}];
UIImageView *imgvline = [[UIImageView alloc] initWithFrame:CGRectMake(31, 24, 2, 3000)];
[imgvline setContentMode:UIViewContentModeScaleAspectFill];
[imgvline setClipsToBounds:YES];
[view addSubview:imgvline];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
UIImage *imageline = [Tools drawLineImageSize:CGSizeMake(2, 3000) line_W:5 line_H:1 color:RGBCOLOR(42, 211, 237)];
@ -189,11 +338,11 @@ typedef void(^backenddraw)(void);
lbwz.textFont = [UIFont systemFontOfSize:15];
lbwz.fspeed = 0.02;
lbwz.strValue = @"以第一人称视角,通过细腻的心理描写,展现新学期第一天的紧张与期待,引出对小学生活的独特感受,如:“那日的阳光透过窗帘,照亮了我心中对未来学习生活的憧憬。”";
__strong ViewLable *lbwzself = lbwz;
__block MASConstraint *bottominfo;
[lbwz setBackHeight:^(float fheight, BOOL isend) {
if(isend)
{
imgvline.height = fheight+38;
backvalue();
}
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)];
@ -270,4 +419,18 @@ typedef void(^backenddraw)(void);
}];
}
-(NSString *)getDuanLuoName:(int)tag
{
NSArray *arr = @[@"一",@"二",@"三",@"四",@"五",@"六",@"七",@"八",@"九",@"十",@"十一",@"十二",@"十三"];
NSString *strback = @"";
@try {
strback=arr[tag];
} @catch (NSException *exception) {
strback = [NSString stringWithFormat:@"%d",tag+1];
} @finally {
}
return strback;
}
@end

View File

@ -9,7 +9,8 @@
@interface StartKTXZPGDetailFJItemView ()
///
@property (nonatomic , strong) UIScrollView *scvback ;
@end
@implementation StartKTXZPGDetailFJItemView
@ -25,6 +26,7 @@
make.left.top.offset(0);
make.width.height.equalTo(self);
}];
_scvback = scvback;
UIView *viewcontent = [[UIView alloc] init];
[viewcontent setBackgroundColor:RGBCOLOR(240, 241, 254)];
@ -85,6 +87,7 @@
{
[self drawTextItem:viewinfo title:@"建议" color:RGBCOLOR(230, 172, 40) value:@"你的作文非常出色,但是可以在语言表达上更加生动有趣,增加一些形象的比喻和细节描写,让读者更加深入地了解你的思考和感受。同时,可以适当增加一些个人的经历和感受,让作文更加具有个性化和独特性。" lastview:lbwzself isend:YES traint:bottominfo];
}
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)];
}];
[viewinfo mas_makeConstraints:^(MASConstraintMaker *make) {
bottominfo = make.bottom.equalTo(lbwz).offset(20);

View File

@ -10,7 +10,8 @@
NS_ASSUME_NONNULL_BEGIN
@interface StartKTXZPGViewController : BaseViewController
///0课堂写作 1作文批改
@property (nonatomic , assign) int type;
@end
NS_ASSUME_NONNULL_END

View File

@ -30,7 +30,7 @@
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
view.type = self.type;
}

View File

@ -10,7 +10,8 @@
NS_ASSUME_NONNULL_BEGIN
@interface StartKTXZPGView : UIView
///0课堂写作 1作文批改
@property (nonatomic , assign) int type;
@end
NS_ASSUME_NONNULL_END

View File

@ -8,7 +8,7 @@
#import "StartKTXZPGView.h"
#import "DownJDLoadView.h"
#import "StartKTXZPGDetailViewController.h"
#import "StartZWPIDetailViewController.h"
@interface StartKTXZPGView ()
@ -89,7 +89,7 @@
UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(40, NavHeight+152, UISCREEN_WIDTH-80, 40)];
[self addSubview:viewline];
[Tools changedView:viewline colors:@[(id)RGBCOLOR(125, 211, 255).CGColor,(id)RGBACOLOR(125, 211, 255,0.5).CGColor,(id)RGBACOLOR(125, 211, 255,0.0).CGColor,(id)RGBACOLOR(125, 211, 255,0.0).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
[Tools changedView:viewline colors:@[(id)RGBACOLOR(125, 211, 255,0.0).CGColor,(id)RGBACOLOR(125, 211, 255,0.0).CGColor,(id)RGBACOLOR(125, 211, 255,0.5).CGColor,(id)RGBCOLOR(125, 211, 255).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
_viewline = viewline;
DownJDLoadView *viewjd = [[DownJDLoadView alloc] init];
@ -159,9 +159,32 @@
{
[self.timer invalidate];
self.timer = nil;
StartKTXZPGDetailViewController *vc = [StartKTXZPGDetailViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
switch (self.type) {
case 0:
{
StartKTXZPGDetailViewController *vc = [StartKTXZPGDetailViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
break;
case 1:
{
StartZWPIDetailViewController *vc = [StartZWPIDetailViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
}
break;
case 2:
{
}
break;
case 3:
{
}
break;
default:
break;
}
}

Binary file not shown.