智能写作全文写作;
|
@ -90,6 +90,26 @@
|
|||
CA8181B32C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA8181B22C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m */; };
|
||||
CA8181B62C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA8181B52C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m */; };
|
||||
CAA600CD2CA92FB700026CF4 /* FXErView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600CC2CA92FB700026CF4 /* FXErView.m */; };
|
||||
CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */; };
|
||||
CAA600D52CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */; };
|
||||
CAA600D92CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */; };
|
||||
CAA600DD2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */; };
|
||||
CAB0D36D2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */; };
|
||||
CAB0D3712CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */; };
|
||||
CAB0D3752CAA47F3009BF67D /* ZhiNengXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */; };
|
||||
CAB0D3792CAA488C009BF67D /* ZhiNengXieZuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */; };
|
||||
CAB0D37C2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */; };
|
||||
CAB0D37F2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */; };
|
||||
CAB0D3832CAA54F2009BF67D /* TiCaiAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */; };
|
||||
CAB0D3872CAA5693009BF67D /* TiCaiAlterTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */; };
|
||||
CAB0F3512CAA7321003B0C39 /* ZhiShuAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */; };
|
||||
CAB0F3542CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */; };
|
||||
CAB0F3582CAA7636003B0C39 /* ChuangZuoSiLuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */; };
|
||||
CAB0F35C2CAA7664003B0C39 /* ChuangZuoSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */; };
|
||||
CAB0F3602CAA84B3003B0C39 /* XieZuoXiangQingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */; };
|
||||
CAB0F3642CAA8523003B0C39 /* XieZuoXiangQingView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */; };
|
||||
CAB0F3672CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */; };
|
||||
CAB0F36A2CAA9255003B0C39 /* FenXiangWenZhangAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */; };
|
||||
CABA14612C9D0B1C002CB3B1 /* ShouYeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14602C9D0B1C002CB3B1 /* ShouYeViewController.m */; };
|
||||
CABA14642C9D0B25002CB3B1 /* FanWenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14632C9D0B25002CB3B1 /* FanWenViewController.m */; };
|
||||
CABA14672C9D0B31002CB3B1 /* AIChatViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14662C9D0B31002CB3B1 /* AIChatViewController.m */; };
|
||||
|
@ -473,6 +493,46 @@
|
|||
CA8181B52C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartKTXZPGDetailFJItemView.m; sourceTree = "<group>"; };
|
||||
CAA600CB2CA92FB700026CF4 /* FXErView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FXErView.h; sourceTree = "<group>"; };
|
||||
CAA600CC2CA92FB700026CF4 /* FXErView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FXErView.m; sourceTree = "<group>"; };
|
||||
CAA600CF2CA9565500026CF4 /* KeTangXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoViewController.h; sourceTree = "<group>"; };
|
||||
CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoViewController.m; sourceTree = "<group>"; };
|
||||
CAA600D32CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoCollectionViewCell.h; sourceTree = "<group>"; };
|
||||
CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoCollectionViewCell.m; sourceTree = "<group>"; };
|
||||
CAA600D72CA95AAC00026CF4 /* KeTangXieZuoNJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoNJViewController.h; sourceTree = "<group>"; };
|
||||
CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoNJViewController.m; sourceTree = "<group>"; };
|
||||
CAA600DB2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoNJTableViewCell.h; sourceTree = "<group>"; };
|
||||
CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoNJTableViewCell.m; sourceTree = "<group>"; };
|
||||
CAB0D36B2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoXiangQingViewController.h; sourceTree = "<group>"; };
|
||||
CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoXiangQingViewController.m; sourceTree = "<group>"; };
|
||||
CAB0D36F2CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoXiangQingView.h; sourceTree = "<group>"; };
|
||||
CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoXiangQingView.m; sourceTree = "<group>"; };
|
||||
CAB0D3732CAA47F3009BF67D /* ZhiNengXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoViewController.h; sourceTree = "<group>"; };
|
||||
CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoViewController.m; sourceTree = "<group>"; };
|
||||
CAB0D3772CAA488C009BF67D /* ZhiNengXieZuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoView.h; sourceTree = "<group>"; };
|
||||
CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoView.m; sourceTree = "<group>"; };
|
||||
CAB0D37A2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoTopView.h; sourceTree = "<group>"; };
|
||||
CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoTopView.m; sourceTree = "<group>"; };
|
||||
CAB0D37D2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoQuanWenView.h; sourceTree = "<group>"; };
|
||||
CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoQuanWenView.m; sourceTree = "<group>"; };
|
||||
CAB0D3812CAA54F2009BF67D /* TiCaiAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TiCaiAlterView.h; sourceTree = "<group>"; };
|
||||
CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TiCaiAlterView.m; sourceTree = "<group>"; };
|
||||
CAB0D3852CAA5693009BF67D /* TiCaiAlterTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TiCaiAlterTableViewCell.h; sourceTree = "<group>"; };
|
||||
CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TiCaiAlterTableViewCell.m; sourceTree = "<group>"; };
|
||||
CAB0F34F2CAA7321003B0C39 /* ZhiShuAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiShuAlterView.h; sourceTree = "<group>"; };
|
||||
CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiShuAlterView.m; sourceTree = "<group>"; };
|
||||
CAB0F3522CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiShuAlterCollectionViewCell.h; sourceTree = "<group>"; };
|
||||
CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiShuAlterCollectionViewCell.m; sourceTree = "<group>"; };
|
||||
CAB0F3562CAA7636003B0C39 /* ChuangZuoSiLuViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChuangZuoSiLuViewController.h; sourceTree = "<group>"; };
|
||||
CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChuangZuoSiLuViewController.m; sourceTree = "<group>"; };
|
||||
CAB0F35A2CAA7664003B0C39 /* ChuangZuoSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChuangZuoSiLuView.h; sourceTree = "<group>"; };
|
||||
CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChuangZuoSiLuView.m; sourceTree = "<group>"; };
|
||||
CAB0F35E2CAA84B3003B0C39 /* XieZuoXiangQingViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingViewController.h; sourceTree = "<group>"; };
|
||||
CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingViewController.m; sourceTree = "<group>"; };
|
||||
CAB0F3622CAA8523003B0C39 /* XieZuoXiangQingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingView.h; sourceTree = "<group>"; };
|
||||
CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingView.m; sourceTree = "<group>"; };
|
||||
CAB0F3652CAA8694003B0C39 /* XieZuoXiangQingSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingSiLuView.h; sourceTree = "<group>"; };
|
||||
CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingSiLuView.m; sourceTree = "<group>"; };
|
||||
CAB0F3682CAA9255003B0C39 /* FenXiangWenZhangAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FenXiangWenZhangAlterView.h; sourceTree = "<group>"; };
|
||||
CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FenXiangWenZhangAlterView.m; sourceTree = "<group>"; };
|
||||
CABA145F2C9D0B1C002CB3B1 /* ShouYeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShouYeViewController.h; sourceTree = "<group>"; };
|
||||
CABA14602C9D0B1C002CB3B1 /* ShouYeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShouYeViewController.m; sourceTree = "<group>"; };
|
||||
CABA14622C9D0B25002CB3B1 /* FanWenViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FanWenViewController.h; sourceTree = "<group>"; };
|
||||
|
@ -1472,9 +1532,161 @@
|
|||
path = "二维码";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAA600CE2CA9470800026CF4 /* 课堂写作 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D36A2CAA3C51009BF67D /* 详情 */,
|
||||
CAA600D62CA95A9100026CF4 /* 年级 */,
|
||||
CAA600D22CA9573E00026CF4 /* cell */,
|
||||
CAA600CF2CA9565500026CF4 /* KeTangXieZuoViewController.h */,
|
||||
CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */,
|
||||
);
|
||||
path = "课堂写作";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAA600D22CA9573E00026CF4 /* cell */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAA600D32CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.h */,
|
||||
CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */,
|
||||
);
|
||||
path = cell;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAA600D62CA95A9100026CF4 /* 年级 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAA600DA2CA95AF700026CF4 /* cell */,
|
||||
CAA600D72CA95AAC00026CF4 /* KeTangXieZuoNJViewController.h */,
|
||||
CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */,
|
||||
);
|
||||
path = "年级";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAA600DA2CA95AF700026CF4 /* cell */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAA600DB2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.h */,
|
||||
CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */,
|
||||
);
|
||||
path = cell;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D36A2CAA3C51009BF67D /* 详情 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D36E2CAA3DA0009BF67D /* view */,
|
||||
CAB0D36B2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.h */,
|
||||
CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */,
|
||||
);
|
||||
path = "详情";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D36E2CAA3DA0009BF67D /* view */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D36F2CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.h */,
|
||||
CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */,
|
||||
);
|
||||
path = view;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D3722CAA47CF009BF67D /* 智能写作 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0F35D2CAA849E003B0C39 /* 写作详情 */,
|
||||
CAB0F3552CAA7626003B0C39 /* 创作思路 */,
|
||||
CAB0D3802CAA54E1009BF67D /* alter */,
|
||||
CAB0D3762CAA487E009BF67D /* view */,
|
||||
CAB0D3732CAA47F3009BF67D /* ZhiNengXieZuoViewController.h */,
|
||||
CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */,
|
||||
);
|
||||
path = "智能写作";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D3762CAA487E009BF67D /* view */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D3772CAA488C009BF67D /* ZhiNengXieZuoView.h */,
|
||||
CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */,
|
||||
CAB0D37A2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.h */,
|
||||
CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */,
|
||||
CAB0D37D2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.h */,
|
||||
CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */,
|
||||
);
|
||||
path = view;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D3802CAA54E1009BF67D /* alter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D3842CAA5683009BF67D /* cell */,
|
||||
CAB0D3812CAA54F2009BF67D /* TiCaiAlterView.h */,
|
||||
CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */,
|
||||
CAB0F34F2CAA7321003B0C39 /* ZhiShuAlterView.h */,
|
||||
CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */,
|
||||
CAB0F3682CAA9255003B0C39 /* FenXiangWenZhangAlterView.h */,
|
||||
CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */,
|
||||
);
|
||||
path = alter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0D3842CAA5683009BF67D /* cell */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D3852CAA5693009BF67D /* TiCaiAlterTableViewCell.h */,
|
||||
CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */,
|
||||
CAB0F3522CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.h */,
|
||||
CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */,
|
||||
);
|
||||
path = cell;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0F3552CAA7626003B0C39 /* 创作思路 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0F3592CAA7658003B0C39 /* view */,
|
||||
CAB0F3562CAA7636003B0C39 /* ChuangZuoSiLuViewController.h */,
|
||||
CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */,
|
||||
);
|
||||
path = "创作思路";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0F3592CAA7658003B0C39 /* view */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0F35A2CAA7664003B0C39 /* ChuangZuoSiLuView.h */,
|
||||
CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */,
|
||||
);
|
||||
path = view;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0F35D2CAA849E003B0C39 /* 写作详情 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0F3612CAA8517003B0C39 /* view */,
|
||||
CAB0F35E2CAA84B3003B0C39 /* XieZuoXiangQingViewController.h */,
|
||||
CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */,
|
||||
);
|
||||
path = "写作详情";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CAB0F3612CAA8517003B0C39 /* view */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0F3622CAA8523003B0C39 /* XieZuoXiangQingView.h */,
|
||||
CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */,
|
||||
CAB0F3652CAA8694003B0C39 /* XieZuoXiangQingSiLuView.h */,
|
||||
CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */,
|
||||
);
|
||||
path = view;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CABA145A2C9D0AF2002CB3B1 /* 首页 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CAB0D3722CAA47CF009BF67D /* 智能写作 */,
|
||||
CAA600CE2CA9470800026CF4 /* 课堂写作 */,
|
||||
CA11ED7A2CA6B0BA00209DFC /* 写作分享 */,
|
||||
CA11ED712CA69AAF00209DFC /* 改写润色 */,
|
||||
CA0D08802CA568120086855E /* 自定义相机 */,
|
||||
|
@ -2805,6 +3017,8 @@
|
|||
CB489FB32744A0BD00DA044A /* THDatePickerView.m in Sources */,
|
||||
CB489FB62744A0BD00DA044A /* NSDate+CXCategory.m in Sources */,
|
||||
CABA146A2C9D0B38002CB3B1 /* GongJuViewController.m in Sources */,
|
||||
CAB0D37F2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m in Sources */,
|
||||
CAB0D37C2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m in Sources */,
|
||||
CB489F612744A0BD00DA044A /* ListAlterView.m in Sources */,
|
||||
CBD422C028DAF38900C32440 /* KAlterView.m in Sources */,
|
||||
CA0D08302CA4FBDB0086855E /* ShouYeXieZuoTableViewCell.m in Sources */,
|
||||
|
@ -2816,6 +3030,7 @@
|
|||
CB489FA02744A0BD00DA044A /* UIView+ZJFrame.m in Sources */,
|
||||
CABA148D2C9D4312002CB3B1 /* PublicNetWorkManager.m in Sources */,
|
||||
CA11ED742CA69AC600209DFC /* GaiXieRunSeViewController.m in Sources */,
|
||||
CAB0F3602CAA84B3003B0C39 /* XieZuoXiangQingViewController.m in Sources */,
|
||||
CA4257A02CA299F900A36A10 /* StartZNPPTDaGangView.m in Sources */,
|
||||
CA81818B2C9E598300EE7E6E /* StartKTXZWenZhangView.m in Sources */,
|
||||
CB489FA72744A0BD00DA044A /* ZJScrollPageView.m in Sources */,
|
||||
|
@ -2831,6 +3046,7 @@
|
|||
CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */,
|
||||
CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */,
|
||||
CB489F8B2744A0BD00DA044A /* NSString+extend.m in Sources */,
|
||||
CAA600D92CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m in Sources */,
|
||||
CB489F8D2744A0BD00DA044A /* NaviGationView.m in Sources */,
|
||||
CB489F9C2744A0BD00DA044A /* LogTableViewCell.m in Sources */,
|
||||
CABA14B12C9D4318002CB3B1 /* UserAuthModel.m in Sources */,
|
||||
|
@ -2862,6 +3078,7 @@
|
|||
CB489FB12744A0BD00DA044A /* FSActionSheetCell.m in Sources */,
|
||||
CA11ED782CA69B5200209DFC /* GaiXieRunSeView.m in Sources */,
|
||||
CB489F6D2744A0BD00DA044A /* UIView+Additions.m in Sources */,
|
||||
CAB0D3752CAA47F3009BF67D /* ZhiNengXieZuoViewController.m in Sources */,
|
||||
CABA14CD2C9D4395002CB3B1 /* NSString+AES.m in Sources */,
|
||||
CA42579C2CA2998200A36A10 /* StartZNPPTDaGangViewController.m in Sources */,
|
||||
CABA14B52C9D4318002CB3B1 /* UserModel.m in Sources */,
|
||||
|
@ -2872,6 +3089,7 @@
|
|||
CA8181B02C9EB96000EE7E6E /* StartKTXZPGDetailFJView.m in Sources */,
|
||||
CB489F7A2744A0BD00DA044A /* FSTextView.m in Sources */,
|
||||
CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */,
|
||||
CAB0D3872CAA5693009BF67D /* TiCaiAlterTableViewCell.m in Sources */,
|
||||
CA0FD6A42CA8FF5C009A4417 /* FXWDPFView.m in Sources */,
|
||||
CABA14B32C9D4318002CB3B1 /* UserConfigModel.m in Sources */,
|
||||
CA8181992C9E77FB00EE7E6E /* DownJDLoadView.m in Sources */,
|
||||
|
@ -2884,6 +3102,7 @@
|
|||
CB489F6C2744A0BD00DA044A /* RadianDisView.m in Sources */,
|
||||
CA487D8A2CA3AB6B00AE773B /* UITableView+MoveCell.m in Sources */,
|
||||
CA0D08782CA557700086855E /* ShouYeLiShiJiLuPGCollectionViewCell.m in Sources */,
|
||||
CAB0F3512CAA7321003B0C39 /* ZhiShuAlterView.m in Sources */,
|
||||
CABA14AE2C9D4318002CB3B1 /* OrderInfoModel.m in Sources */,
|
||||
CB489F502744A0BD00DA044A /* Tools.m in Sources */,
|
||||
CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */,
|
||||
|
@ -2902,6 +3121,7 @@
|
|||
CB489FAC2744A0BD00DA044A /* XLPhotoBrowser.m in Sources */,
|
||||
CB489F522744A0BD00DA044A /* PlayAudio.m in Sources */,
|
||||
CA0D08492CA534ED0086855E /* ShouYeShenFenCollectionViewCell.m in Sources */,
|
||||
CAB0F3642CAA8523003B0C39 /* XieZuoXiangQingView.m in Sources */,
|
||||
CB489F662744A0BD00DA044A /* DAYUtils.m in Sources */,
|
||||
CA4257B22CA2BB8500A36A10 /* StartPayViewController.m in Sources */,
|
||||
CB489F6A2744A0BD00DA044A /* UILabel+PGGLabText.m in Sources */,
|
||||
|
@ -2919,9 +3139,11 @@
|
|||
CB489F8E2744A0BD00DA044A /* UITextFieldYS.m in Sources */,
|
||||
CB489F922744A0BD00DA044A /* IndexGetNewsModel.m in Sources */,
|
||||
CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */,
|
||||
CAA600DD2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m in Sources */,
|
||||
CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */,
|
||||
CABA14E02C9D6F30002CB3B1 /* RoleTreeModel.m in Sources */,
|
||||
CA0FD6962CA8F68D009A4417 /* FenXiangHaiBaoViewController.m in Sources */,
|
||||
CAB0D3832CAA54F2009BF67D /* TiCaiAlterView.m in Sources */,
|
||||
CB489F4F2744A0BD00DA044A /* AddressListAlterViewTableViewCell.m in Sources */,
|
||||
CA8181A42C9EA07300EE7E6E /* StartKTXZPGDetailTabView.m in Sources */,
|
||||
CABA14E32C9D707E002CB3B1 /* TextbookInfoModel.m in Sources */,
|
||||
|
@ -2929,6 +3151,7 @@
|
|||
CB489FD72744A30000DA044A /* PGGMoviePlayer.m in Sources */,
|
||||
CB489F982744A0BD00DA044A /* BaseModel.m in Sources */,
|
||||
CA4257B92CA2C42E00A36A10 /* StartPayTQView.m in Sources */,
|
||||
CAA600D52CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m in Sources */,
|
||||
CB489F9B2744A0BD00DA044A /* YSAPIClient.m in Sources */,
|
||||
CB489F822744A0BD00DA044A /* NSData+Base64.m in Sources */,
|
||||
CB489FA62744A0BD00DA044A /* ZJScrollSegmentView.m in Sources */,
|
||||
|
@ -2941,8 +3164,10 @@
|
|||
CA0D08612CA547C60086855E /* ShouYeLiShiJiLuViewController.m in Sources */,
|
||||
CA11ED642CA6851200209DFC /* CamreTiShiAlterView.m in Sources */,
|
||||
CB489F712744A0BD00DA044A /* RootTabBarController.m in Sources */,
|
||||
CAB0F3542CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m in Sources */,
|
||||
CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */,
|
||||
CABA14BE2C9D4342002CB3B1 /* TimeTools.m in Sources */,
|
||||
CAB0D36D2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m in Sources */,
|
||||
CB489F762744A0BD00DA044A /* UIColor+LSFoundation.m in Sources */,
|
||||
CB489F952744A0BD00DA044A /* BaseRequestDataController.m in Sources */,
|
||||
CB489F8A2744A0BD00DA044A /* UIButton+HQCustomIcon.m in Sources */,
|
||||
|
@ -2955,7 +3180,9 @@
|
|||
CB489F932744A0BD00DA044A /* PutImageModel.m in Sources */,
|
||||
CA11ED5D2CA653F600209DFC /* CamreImagesView.m in Sources */,
|
||||
CA0FD6A02CA8FA88009A4417 /* FenXiangHaiBaoInfoSuperItemView.m in Sources */,
|
||||
CAB0F36A2CAA9255003B0C39 /* FenXiangWenZhangAlterView.m in Sources */,
|
||||
CB489F7D2744A0BD00DA044A /* OpenSSLWrapper.m in Sources */,
|
||||
CAB0F3582CAA7636003B0C39 /* ChuangZuoSiLuViewController.m in Sources */,
|
||||
CA11ED6C2CA6925D00209DFC /* KaiTongAlterView.m in Sources */,
|
||||
CB489FAB2744A0BD00DA044A /* XLZoomingScrollView.m in Sources */,
|
||||
CA8181962C9E751700EE7E6E /* StartKTXZPGView.m in Sources */,
|
||||
|
@ -2983,6 +3210,7 @@
|
|||
CB489FD82744A30000DA044A /* PGGMovieLineSetView.m in Sources */,
|
||||
CB489F4D2744A0BD00DA044A /* AddressListAlterView.m in Sources */,
|
||||
CB489FA22744A0BD00DA044A /* UIViewController+ZJScrollPageController.m in Sources */,
|
||||
CAB0F3672CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m in Sources */,
|
||||
CA487D872CA3A36300AE773B /* StartZNPPTDaGangTableViewCell.m in Sources */,
|
||||
CA8181882C9E58B100EE7E6E /* StartKTXZWenZhangViewController.m in Sources */,
|
||||
CB489F5A2744A0BD00DA044A /* YQLocationTransform.m in Sources */,
|
||||
|
@ -2991,8 +3219,10 @@
|
|||
CB489F4C2744A0BD00DA044A /* AddressListUrlAlterView.m in Sources */,
|
||||
CABA14DD2C9D6E40002CB3B1 /* NetWorkManager.m in Sources */,
|
||||
CBD422BD28DAF34B00C32440 /* IndexSectionView.m in Sources */,
|
||||
CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */,
|
||||
CB489FA12744A0BD00DA044A /* ZJTitleView.m in Sources */,
|
||||
CA0D082D2CA4F8930086855E /* ShouYeZNXZTableViewCell.m in Sources */,
|
||||
CAB0D3792CAA488C009BF67D /* ZhiNengXieZuoView.m in Sources */,
|
||||
CB489FAF2744A0BD00DA044A /* FSActionSheetConfig.m in Sources */,
|
||||
CA11ED612CA6556900209DFC /* CamreImagesCollectionViewCell.m in Sources */,
|
||||
CA0D08452CA5316B0086855E /* ShouYeShenFenView.m in Sources */,
|
||||
|
@ -3010,6 +3240,7 @@
|
|||
CB489FA42744A0BD00DA044A /* ZJCollectionView.m in Sources */,
|
||||
CB489F702744A0BD00DA044A /* TabBarController.m in Sources */,
|
||||
CA11ED702CA6946500209DFC /* KaiTongAlterTQView.m in Sources */,
|
||||
CAB0D3712CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m in Sources */,
|
||||
CABA14CE2C9D4395002CB3B1 /* MIUAES.m in Sources */,
|
||||
CA0FD69A2CA8F6DE009A4417 /* FenXiangHaiBaoView.m in Sources */,
|
||||
CB489F562744A0BD00DA044A /* amrFileCodec.m in Sources */,
|
||||
|
@ -3017,6 +3248,7 @@
|
|||
CB489F572744A0BD00DA044A /* AudioRecored.m in Sources */,
|
||||
CA0D083D2CA50F480086855E /* ShouYeZuoWenTableViewCell.m in Sources */,
|
||||
CA8181B32C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m in Sources */,
|
||||
CAB0F35C2CAA7664003B0C39 /* ChuangZuoSiLuView.m in Sources */,
|
||||
CA0D084C2CA538710086855E /* ShouYeShenFenNianJiView.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43133@2x.png",
|
||||
"filename" : "组 42991@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43133@3x.png",
|
||||
"filename" : "组 42991@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
After Width: | Height: | Size: 187 KiB |
After Width: | Height: | Size: 404 KiB |
22
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_保存到相册@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_保存到相册@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@2x.png
vendored
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@3x.png
vendored
Normal file
After Width: | Height: | Size: 4.7 KiB |
22
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_复制全文@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_复制全文@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@2x.png
vendored
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@3x.png
vendored
Normal file
After Width: | Height: | Size: 5.5 KiB |
22
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_微信好友@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_微信好友@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@2x.png
vendored
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@3x.png
vendored
Normal file
After Width: | Height: | Size: 6.2 KiB |
22
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_微信朋友圈@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "fenxiang_微信朋友圈@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@2x.png
vendored
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@3x.png
vendored
Normal file
After Width: | Height: | Size: 8.5 KiB |
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43314@2x.png",
|
||||
"filename" : "容器@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43314@3x.png",
|
||||
"filename" : "容器@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.1 KiB |
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43318@2x.png",
|
||||
"filename" : "背景@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43318@3x.png",
|
||||
"filename" : "背景@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
After Width: | Height: | Size: 154 KiB |
After Width: | Height: | Size: 305 KiB |
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43313@2x.png",
|
||||
"filename" : "容器@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "组 43313@3x.png",
|
||||
"filename" : "容器@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 754 B |
22
ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "矩形 17911@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "矩形 17911@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@2x.png
vendored
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@3x.png
vendored
Normal file
After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 777 B |
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "容器 13@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 5.4 KiB |
|
@ -352,6 +352,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
///处理h5字体颜色 转换成富文本
|
||||
+(NSMutableAttributedString *)applyCSS:(NSString *)text;
|
||||
///创建二维码
|
||||
+(UIImage *)CreateStrcode:(NSString *)strcode size:(CGFloat)f_width;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -2075,4 +2075,50 @@ static dispatch_source_t _timer;
|
|||
|
||||
return attrString;
|
||||
}
|
||||
|
||||
///创建二维码
|
||||
+(UIImage *)CreateStrcode:(NSString *)strcode size:(CGFloat)f_width
|
||||
{
|
||||
///生成二维码
|
||||
CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"];
|
||||
[filter setDefaults];
|
||||
NSString *info = strcode;
|
||||
//把信息转化为NSData
|
||||
NSData *infoData = [info dataUsingEncoding:NSUTF8StringEncoding];
|
||||
//滤镜对象kvc存值
|
||||
[filter setValue:infoData forKeyPath:@"inputMessage"];
|
||||
CIImage *outImage = [filter outputImage];
|
||||
|
||||
return [self createNonInterpolatedUIImageFormCIImage:outImage withSize:f_width];
|
||||
}
|
||||
/**
|
||||
* 根据CIImage生成指定大小的UIImage
|
||||
*
|
||||
* @param image CIImage
|
||||
* @param size 图片宽度以及高度
|
||||
*/
|
||||
+ (UIImage *)createNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat) size
|
||||
{
|
||||
CGRect extent = CGRectIntegral(image.extent);
|
||||
CGFloat scale = MIN(size/CGRectGetWidth(extent), size/CGRectGetHeight(extent));
|
||||
|
||||
//1.创建bitmap;
|
||||
size_t width = CGRectGetWidth(extent) * scale;
|
||||
size_t height = CGRectGetHeight(extent) * scale;
|
||||
CGColorSpaceRef cs = CGColorSpaceCreateDeviceGray();
|
||||
CGContextRef bitmapRef = CGBitmapContextCreate(nil, width, height, 8, 0, cs, (CGBitmapInfo)kCGImageAlphaNone);
|
||||
CIContext *context = [CIContext contextWithOptions:nil];
|
||||
CGImageRef bitmapImage = [context createCGImage:image fromRect:extent];
|
||||
CGContextSetInterpolationQuality(bitmapRef, kCGInterpolationNone);
|
||||
CGContextScaleCTM(bitmapRef, scale, scale);
|
||||
CGContextDrawImage(bitmapRef, extent, bitmapImage);
|
||||
|
||||
//2.保存bitmap到图片
|
||||
CGImageRef scaledImage = CGBitmapContextCreateImage(bitmapRef);
|
||||
CGContextRelease(bitmapRef);
|
||||
CGImageRelease(bitmapImage);
|
||||
return [UIImage imageWithCGImage:scaledImage];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#import "ShouYeXieZuoTableViewCell.h"
|
||||
#import "CamreViewController.h"
|
||||
#import "KeTangXieZuoViewController.h"
|
||||
|
||||
@interface ShouYeXieZuoTableViewCell ()
|
||||
|
||||
|
@ -150,7 +151,8 @@
|
|||
break;
|
||||
case 1:
|
||||
{
|
||||
|
||||
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
|
||||
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
#import "ShouYeZNXZTableViewCell.h"
|
||||
#import "ZhiNengXieZuoViewController.h"
|
||||
|
||||
@interface ShouYeZNXZTableViewCell ()
|
||||
|
||||
|
@ -26,6 +27,7 @@
|
|||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:8];
|
||||
[viewback setImage:[UIImage imageNamed:@"home_znxzback"]];
|
||||
[viewback setUserInteractionEnabled:YES];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"智能写作"];
|
||||
|
@ -73,8 +75,20 @@
|
|||
make.right.equalTo(viewback).offset(-18);
|
||||
}];
|
||||
|
||||
UIButton *btnext = [[UIButton alloc] init];
|
||||
[viewback addSubview:btnext];
|
||||
[btnext mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(viewback);
|
||||
}];
|
||||
[btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)nextAction
|
||||
{
|
||||
ZhiNengXieZuoViewController *vc = [ZhiNengXieZuoViewController new];
|
||||
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -11,10 +11,14 @@
|
|||
#import "FXWDPFView.h"
|
||||
#import "FXTextView.h"
|
||||
#import "FXXieZuoJianYiView.h"
|
||||
#import "FXErView.h"
|
||||
|
||||
|
||||
@interface FenXiangHaiBaoView ()
|
||||
///
|
||||
@property (nonatomic , strong) UIScrollView *scvback;
|
||||
@property (nonatomic , strong) UIView *scvback;
|
||||
///
|
||||
@property (nonatomic , strong) UIImage *imageCreate;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -32,11 +36,22 @@
|
|||
}];
|
||||
_scvback = scvback;
|
||||
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[scvback addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.width.equalTo(scvback);
|
||||
}];
|
||||
_scvback = viewback;
|
||||
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(viewback);
|
||||
}];
|
||||
|
||||
|
||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||
[imgvback setImage:[UIImage imageNamed:@"hb_back"]];
|
||||
[scvback addSubview:imgvback];
|
||||
[viewback addSubview:imgvback];
|
||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.width.equalTo(scvback);
|
||||
make.left.top.width.equalTo(viewback);
|
||||
}];
|
||||
|
||||
[self drawUI];
|
||||
|
@ -183,9 +198,92 @@
|
|||
make.bottom.equalTo(viewjianyi);
|
||||
}];
|
||||
|
||||
[self.scvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(viewxzsl);
|
||||
|
||||
///二维码
|
||||
FXErView *viewer = [FXErView new];
|
||||
[self.scvback addSubview:viewer];
|
||||
[viewer mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(viewxzsl);
|
||||
make.top.equalTo(viewxzsl.mas_bottom).offset(40);
|
||||
}];
|
||||
|
||||
UIView *viewshare = [[UIView alloc] init];
|
||||
[viewshare setBackgroundColor:[UIColor whiteColor]];
|
||||
[self.scvback addSubview:viewshare];
|
||||
[viewshare mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(viewer);
|
||||
make.top.equalTo(viewer.mas_bottom).offset(1);
|
||||
make.height.offset(108);
|
||||
}];
|
||||
[self drawShareView:viewshare];
|
||||
|
||||
[self.scvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(viewshare);
|
||||
}];
|
||||
}
|
||||
-(void)drawShareView:(UIView *)view
|
||||
{
|
||||
float f_w = (UISCREEN_WIDTH-40)/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(26, 26, 26) forState:UIControlStateNormal];
|
||||
[btitem.titleLabel setFont:[UIFont systemFontOfSize:15]];
|
||||
[btitem setImage:[UIImage imageNamed:[NSString stringWithFormat:@"hb_%@",arr[i]]] forState:UIControlStateNormal];
|
||||
[view addSubview:btitem];
|
||||
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(view);
|
||||
make.left.offset(20+f_w*i);
|
||||
make.width.offset(f_w);
|
||||
}];
|
||||
[btitem setIconInTopWithSpacing:4];
|
||||
[btitem setTag:i];
|
||||
[btitem addTarget:self action:@selector(shareAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
}
|
||||
|
||||
-(void)shareAction:(UIButton *)sender
|
||||
{
|
||||
switch (sender.tag) {
|
||||
case 0:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
self.imageCreate = [self jietu];
|
||||
UIImageWriteToSavedPhotosAlbum(self.imageCreate, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
-(UIImage *)jietu
|
||||
{
|
||||
float fheight = self.scvback.height-108;
|
||||
UIGraphicsBeginImageContextWithOptions(CGSizeMake(UISCREEN_WIDTH, fheight), NO, 0.0);
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
[self.scvback.layer renderInContext:context];
|
||||
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext();
|
||||
return image;
|
||||
}
|
||||
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
|
||||
{
|
||||
if(!error)
|
||||
{
|
||||
[HXHud showMessage:@"保存成功" afterDelayType:0];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -7,6 +7,13 @@
|
|||
|
||||
#import "FXErView.h"
|
||||
|
||||
|
||||
@interface FXErView ()
|
||||
///
|
||||
@property (nonatomic , strong) UIImageView *imgver;
|
||||
|
||||
@end
|
||||
|
||||
@implementation FXErView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
|
@ -29,7 +36,53 @@
|
|||
make.top.offset(10);
|
||||
make.width.height.offset(100);
|
||||
}];
|
||||
[imgver.layer setMasksToBounds:YES];
|
||||
[imgver.layer setCornerRadius:8];
|
||||
[imgver.layer setBorderWidth:3];
|
||||
[imgver.layer setBorderColor:[UIColor whiteColor].CGColor];
|
||||
_imgver = imgver;
|
||||
|
||||
UIImageView *imgvlog = [[UIImageView alloc] init];
|
||||
[imgvlog setImage:[UIImage imageNamed:@"hb_log"]];
|
||||
[imgver addSubview:imgvlog];
|
||||
[imgvlog mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.offset(30);
|
||||
make.center.equalTo(imgver);
|
||||
}];
|
||||
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"一键拍照识别"];
|
||||
[lbname setTextColor:RGBCOLOR(26, 26, 26)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont fontWithName:@"AlimamaShuHeiTi-Bold" size:20]];
|
||||
[self addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(imgver.mas_right).offset(24);
|
||||
make.top.offset(13);
|
||||
}];
|
||||
|
||||
UILabel *lbnamets = [[UILabel alloc] init];
|
||||
[lbnamets setText:@"作文快速批改"];
|
||||
[lbnamets setTextColor:RGBCOLOR(26, 26, 26)];
|
||||
[lbnamets setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbnamets setFont:[UIFont fontWithName:@"AlimamaShuHeiTi-Bold" size:20]];
|
||||
[self addSubview:lbnamets];
|
||||
[lbnamets mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(lbname).offset(43);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(4);
|
||||
}];
|
||||
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(imgvback);
|
||||
}];
|
||||
|
||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||
UIImage *imageer = [Tools CreateStrcode:@"123" size:94];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.imgver.image = imageer;
|
||||
});
|
||||
});
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// ZhiNengXieZuoViewController.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "BaseViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZhiNengXieZuoViewController : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,47 @@
|
|||
//
|
||||
// ZhiNengXieZuoViewController.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiNengXieZuoViewController.h"
|
||||
#import "ZhiNengXieZuoView.h"
|
||||
|
||||
@interface ZhiNengXieZuoViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZhiNengXieZuoViewController
|
||||
- (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 clearColor]];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self.view setBackgroundColor:[UIColor whiteColor]];
|
||||
|
||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||
[imgvback setImage:[UIImage imageNamed:@"znxz_back"]];
|
||||
[self.view addSubview:imgvback];
|
||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.view);
|
||||
}];
|
||||
[self.view sendSubviewToBack:imgvback];
|
||||
|
||||
ZhiNengXieZuoView *view = [ZhiNengXieZuoView new];
|
||||
[self.view addSubview:view];
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
make.top.offset(NavHeight);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// FenXiangWenZhangAlterView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
typedef void(^FenXiangWenZhangAlterViewBack)(NSInteger tag);
|
||||
@interface FenXiangWenZhangAlterView : UIView
|
||||
///
|
||||
@property (nonatomic , strong) FenXiangWenZhangAlterViewBack backValue;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,96 @@
|
|||
//
|
||||
// FenXiangWenZhangAlterView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "FenXiangWenZhangAlterView.h"
|
||||
|
||||
@implementation FenXiangWenZhangAlterView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
[self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)];
|
||||
|
||||
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.bottom.equalTo(self).offset(-TabHeight+30);
|
||||
make.height.offset(218);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:30];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"分享到"];
|
||||
[lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont boldSystemFontOfSize:18]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.offset(20);
|
||||
make.centerX.equalTo(viewback);
|
||||
}];
|
||||
|
||||
NSArray *arrtt = @[@"微信好友",@"微信朋友圈",@"保存到相册",@"复制全文"];
|
||||
float f_w = (UISCREEN_WIDTH-40)/arrtt.count;
|
||||
for(int i = 0 ; i < arrtt.count; i++)
|
||||
{
|
||||
UIButton *btdenglu = [[UIButton alloc] init];
|
||||
[btdenglu setTitle:arrtt[i] forState:UIControlStateNormal];
|
||||
[btdenglu setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal];
|
||||
[btdenglu.titleLabel setFont:[UIFont systemFontOfSize:14]];
|
||||
[btdenglu setImage:[UIImage imageNamed:[NSString stringWithFormat:@"fenxiang_%@",arrtt[i]]] forState:UIControlStateNormal];
|
||||
[viewback addSubview:btdenglu];
|
||||
[btdenglu mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(f_w*i);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(10);
|
||||
make.height.offset(100);
|
||||
make.width.offset(f_w);
|
||||
}];
|
||||
[btdenglu setIconInTopWithSpacing:10];
|
||||
[btdenglu setTag:i];
|
||||
[btdenglu addTarget:self action:@selector(shareAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
}
|
||||
|
||||
UIView *viewline = [[UIView alloc] init];
|
||||
[viewline setBackgroundColor:RGBCOLOR(248, 248, 248)];
|
||||
[viewback addSubview:viewline];
|
||||
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(viewback);
|
||||
make.top.offset(155);
|
||||
make.height.offset(1);
|
||||
}];
|
||||
|
||||
UIButton *btcancle = [[UIButton alloc] init];
|
||||
[btcancle setTitle:@"取消" forState:UIControlStateNormal];
|
||||
[btcancle setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal];
|
||||
[btcancle.titleLabel setFont:[UIFont boldSystemFontOfSize:16]];
|
||||
[viewback addSubview:btcancle];
|
||||
[btcancle mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(viewback);
|
||||
make.top.equalTo(viewline.mas_bottom);
|
||||
}];
|
||||
[btcancle addTarget:self action:@selector(cancleAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)shareAction:(UIButton *)sender
|
||||
{
|
||||
self.backValue(sender.tag);
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
-(void)cancleAction
|
||||
{
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// TiCaiAlterView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
typedef void(^TiCaiAlterViewBack)(NSString *name);
|
||||
@interface TiCaiAlterView : UIView
|
||||
///
|
||||
@property (nonatomic , strong) TiCaiAlterViewBack backValue;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,144 @@
|
|||
//
|
||||
// TiCaiAlterView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "TiCaiAlterView.h"
|
||||
#import "TiCaiAlterTableViewCell.h"
|
||||
|
||||
|
||||
@interface TiCaiAlterView ()<UITableViewDelegate,UITableViewDataSource>
|
||||
///
|
||||
@property (nonatomic , strong) UITableView *tableView;
|
||||
///
|
||||
@property (nonatomic , strong) NSMutableArray *arrdata;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@implementation TiCaiAlterView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
[self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)];
|
||||
|
||||
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.bottom.equalTo(self).offset(-TabHeight+30);
|
||||
make.height.offset(UISCREEN_HEIGHT*0.75);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:30];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"作文题材"];
|
||||
[lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont boldSystemFontOfSize:18]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.offset(20);
|
||||
make.centerX.equalTo(viewback);
|
||||
}];
|
||||
|
||||
UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
|
||||
[tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
|
||||
[tableView setBackgroundColor:[UIColor clearColor]];
|
||||
[tableView setDelegate:self];
|
||||
[tableView setDataSource:self];
|
||||
[tableView setShowsVerticalScrollIndicator:NO];
|
||||
[viewback addSubview:tableView];
|
||||
[tableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(viewback);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(20);
|
||||
}];
|
||||
_tableView = tableView;
|
||||
[self getdata];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)getdata
|
||||
{
|
||||
NSArray *arrtt = @[@"记叙文",@"说明文",@"抒情文",@"议论文",@"描写型"];
|
||||
NSArray *arrinfo = @[@"对生活中的人或物,进行描述,叙述,从而表达作者的思想感情。",@"主要应用在我们的生活里,方便我们更容易了解事物。",@"利于抒发作者感情,表达作者思想。",@"表达作者的观点和看法的作文类型。",@"细致入微的描写事物。"];
|
||||
self.arrdata = [NSMutableArray new];
|
||||
for(int i = 0 ; i < arrtt.count; i++)
|
||||
{
|
||||
baseInfoModel *model = [baseInfoModel new];
|
||||
model.title = arrtt[i];
|
||||
model.info = arrinfo[i];
|
||||
[self.arrdata addObject:model];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - UITableView
|
||||
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
{
|
||||
return self.arrdata.count;
|
||||
}
|
||||
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
static NSString *strcell = @"TiCaiAlterTableViewCell";
|
||||
TiCaiAlterTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell];
|
||||
if(!cell)
|
||||
{
|
||||
cell = [[TiCaiAlterTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strcell];
|
||||
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
|
||||
[cell setBackgroundColor:[UIColor clearColor]];
|
||||
}
|
||||
cell.model = self.arrdata[indexPath.section];
|
||||
return cell;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
return 0.01;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
|
||||
{
|
||||
return 15;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
baseInfoModel *model = self.arrdata[indexPath.section];
|
||||
float fheiht = [Tools getLabelHeightWithText:model.info width:UISCREEN_WIDTH-80 font:14 linHeight:4]+57;
|
||||
return fheiht;
|
||||
}
|
||||
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
return [UIView new];
|
||||
}
|
||||
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
|
||||
{
|
||||
return [UIView new];
|
||||
}
|
||||
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
for(baseInfoModel *model in self.arrdata)
|
||||
{
|
||||
model.select = NO;
|
||||
}
|
||||
baseInfoModel *model = self.arrdata[indexPath.section];
|
||||
model.select = YES;
|
||||
[self.tableView reloadData];
|
||||
[self.tableView setUserInteractionEnabled:NO];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
self.backValue(model.title);
|
||||
[self removeFromSuperview];
|
||||
});
|
||||
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// ZhiShuAlterView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
typedef void(^ZhiShuAlterViewBack)(NSString *name);
|
||||
@interface ZhiShuAlterView : UIView
|
||||
///
|
||||
@property (nonatomic , strong) ZhiShuAlterViewBack backValue;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,131 @@
|
|||
//
|
||||
// ZhiShuAlterView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiShuAlterView.h"
|
||||
#import "ZhiShuAlterCollectionViewCell.h"
|
||||
|
||||
@interface ZhiShuAlterView ()<UICollectionViewDelegate,UICollectionViewDataSource>
|
||||
///
|
||||
@property (nonatomic , strong) UICollectionView *collect;
|
||||
///
|
||||
@property (nonatomic , strong) NSMutableArray *arrdata;
|
||||
@end
|
||||
|
||||
@implementation ZhiShuAlterView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
[self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)];
|
||||
|
||||
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.bottom.equalTo(self).offset(-TabHeight+30);
|
||||
make.height.offset(223);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:30];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"字数要求"];
|
||||
[lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont boldSystemFontOfSize:18]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.offset(20);
|
||||
make.centerX.equalTo(viewback);
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
layout.minimumLineSpacing = 0;
|
||||
layout.minimumInteritemSpacing = 0;
|
||||
UICollectionView *collect = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
|
||||
[collect setScrollEnabled:NO];
|
||||
[collect setDelegate:self];
|
||||
[collect setDataSource:self];
|
||||
[collect setBackgroundColor:[UIColor clearColor]];
|
||||
[viewback addSubview:collect];
|
||||
[collect mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(0);
|
||||
make.right.equalTo(viewback);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(20);
|
||||
make.height.offset(158);
|
||||
}];
|
||||
[collect registerClass:[ZhiShuAlterCollectionViewCell class] forCellWithReuseIdentifier:@"ZhiShuAlterCollectionViewCell"];
|
||||
_collect = collect;
|
||||
|
||||
[self getdata];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
-(void)getdata
|
||||
{
|
||||
NSArray *arrtt = @[@"100以内",@"100-200",@"200-300",@"300-400",@"400-500",@"500-600",@"600-800",@"800以上"];
|
||||
self.arrdata = [NSMutableArray new];
|
||||
for(int i = 0 ; i < arrtt.count; i++)
|
||||
{
|
||||
baseInfoModel *model = [baseInfoModel new];
|
||||
model.title = arrtt[i];
|
||||
[self.arrdata addObject:model];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - UICollectionView
|
||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
||||
{
|
||||
return self.arrdata.count;
|
||||
}
|
||||
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
ZhiShuAlterCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZhiShuAlterCollectionViewCell" forIndexPath:indexPath];
|
||||
cell.model = self.arrdata[indexPath.row];
|
||||
return cell;
|
||||
}
|
||||
//定义每个section的间距
|
||||
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{
|
||||
|
||||
return UIEdgeInsetsMake(0, 20, 0, 20);
|
||||
}
|
||||
//纵向cell间距
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section{
|
||||
return 15;
|
||||
}
|
||||
//cell 间距
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout ForSectionAtIndex:(NSInteger)section{
|
||||
return 20;
|
||||
}
|
||||
// 定义每个UICollectionViewCell 的大小
|
||||
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
return CGSizeMake((UISCREEN_WIDTH-120)/3.0, 36);
|
||||
}
|
||||
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
///做选中操作
|
||||
for(baseInfoModel *model in self.arrdata)
|
||||
{
|
||||
model.select = NO;
|
||||
}
|
||||
baseInfoModel *model = self.arrdata[indexPath.row];
|
||||
model.select = YES;
|
||||
[self.collect reloadData];
|
||||
[self.collect setUserInteractionEnabled:NO];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
self.backValue(model.title);
|
||||
[self removeFromSuperview];
|
||||
});
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// TiCaiAlterTableViewCell.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TiCaiAlterTableViewCell : UITableViewCell
|
||||
///
|
||||
@property (nonatomic , strong) baseInfoModel *model;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,94 @@
|
|||
//
|
||||
// TiCaiAlterTableViewCell.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "TiCaiAlterTableViewCell.h"
|
||||
|
||||
|
||||
@interface TiCaiAlterTableViewCell ()
|
||||
///
|
||||
@property (nonatomic , strong) UIView *viewback;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbname;
|
||||
@property (nonatomic , strong) UILabel *lbinfo;
|
||||
@end
|
||||
|
||||
@implementation TiCaiAlterTableViewCell
|
||||
|
||||
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
|
||||
{
|
||||
if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
|
||||
{
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:RGBCOLOR(240, 241, 254)];
|
||||
[self.contentView addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(self);
|
||||
make.left.offset(20);
|
||||
make.right.equalTo(self).offset(-20);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:20];
|
||||
_viewback = viewback;
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"说明文"];
|
||||
[lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont systemFontOfSize:16]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(20);
|
||||
make.top.offset(15);
|
||||
}];
|
||||
_lbname = lbname;
|
||||
|
||||
UILabel *lbinfo = [[UILabel alloc] init];
|
||||
[lbinfo setText:@"说明文"];
|
||||
[lbinfo setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbinfo setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbinfo setFont:[UIFont systemFontOfSize:14]];
|
||||
[lbinfo setNumberOfLines:0];
|
||||
[viewback addSubview:lbinfo];
|
||||
[lbinfo mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(lbname);
|
||||
make.right.equalTo(viewback).offset(-20);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(4);
|
||||
}];
|
||||
_lbinfo = lbinfo;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)setModel:(baseInfoModel *)model
|
||||
{
|
||||
_model = model;
|
||||
self.lbname.text = model.title;
|
||||
self.lbinfo.text = model.info;
|
||||
if(model.select)
|
||||
{
|
||||
[self.viewback setBackgroundColor:RGBCOLOR(108, 119, 246)];
|
||||
[self.lbname setTextColor:[UIColor whiteColor]];
|
||||
[self.lbinfo setTextColor:[UIColor whiteColor]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.viewback setBackgroundColor:RGBCOLOR(240, 241, 254)];
|
||||
[self.lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[self.lbinfo setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
}
|
||||
NSMutableParagraphStyle *style = [NSMutableParagraphStyle new];
|
||||
style.lineSpacing = 4;
|
||||
style.lineBreakMode = NSLineBreakByWordWrapping;
|
||||
style.alignment = NSTextAlignmentLeft;
|
||||
|
||||
NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:model.info];
|
||||
[attrString addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, model.info.length)];
|
||||
self.lbinfo.attributedText = attrString;
|
||||
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// ZhiShuAlterCollectionViewCell.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZhiShuAlterCollectionViewCell : UICollectionViewCell
|
||||
///
|
||||
@property (nonatomic , strong) baseInfoModel *model;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,61 @@
|
|||
//
|
||||
// ZhiShuAlterCollectionViewCell.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiShuAlterCollectionViewCell.h"
|
||||
|
||||
|
||||
@interface ZhiShuAlterCollectionViewCell ()
|
||||
///
|
||||
@property (nonatomic , strong) UIView *viewback;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbname;
|
||||
@end
|
||||
|
||||
@implementation ZhiShuAlterCollectionViewCell
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:RGBCOLOR(240, 241, 254)];
|
||||
[self.contentView addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:18];
|
||||
_viewback = viewback;
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"说明文"];
|
||||
[lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
[lbname setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbname setFont:[UIFont systemFontOfSize:14]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(viewback);
|
||||
}];
|
||||
_lbname = lbname;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
-(void)setModel:(baseInfoModel *)model
|
||||
{
|
||||
_model = model;
|
||||
self.lbname.text = model.title;
|
||||
if(model.select)
|
||||
{
|
||||
[self.viewback setBackgroundColor:RGBCOLOR(108, 119, 246)];
|
||||
[self.lbname setTextColor:[UIColor whiteColor]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.viewback setBackgroundColor:RGBCOLOR(240, 241, 254)];
|
||||
[self.lbname setTextColor:RGBCOLOR(61, 61, 61)];
|
||||
}
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// ZhiNengXieZuoQuanWenView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZhiNengXieZuoQuanWenView : UIView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,193 @@
|
|||
//
|
||||
// ZhiNengXieZuoQuanWenView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiNengXieZuoQuanWenView.h"
|
||||
#import "TiCaiAlterView.h"
|
||||
#import "ZhiShuAlterView.h"
|
||||
#import "ChuangZuoSiLuViewController.h"
|
||||
|
||||
@interface ZhiNengXieZuoQuanWenView ()
|
||||
///
|
||||
@property (nonatomic , strong) NSMutableArray *arrfield;
|
||||
@end
|
||||
|
||||
@implementation ZhiNengXieZuoQuanWenView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
self.arrfield = [NSMutableArray new];
|
||||
UIView *viewlast = nil;
|
||||
NSArray *arrt = @[@"作文标题",@"作文要求",@"作文题材",@"字数要求"];
|
||||
NSArray *arrplatch = @[@"请输入标题",@"请输入作文要求,如:探索梦想的翅膀",@"作文题材",@"字数要求"];
|
||||
for(int i = 0; i < arrt.count; i++)
|
||||
{
|
||||
UIView *viewitem = [[UIView alloc] init];
|
||||
[self addSubview:viewitem];
|
||||
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(self);
|
||||
make.top.offset(5+90*i);
|
||||
make.height.offset(90);
|
||||
}];
|
||||
viewlast = viewitem;
|
||||
|
||||
UITextField *field = [self drawItemView:viewitem title:arrt[i] platch:arrplatch[i] tag:i-1];
|
||||
if(i==2)
|
||||
{
|
||||
field.text = @"记叙文";
|
||||
}
|
||||
else if (i==3)
|
||||
{
|
||||
field.text = @"100以内";
|
||||
}
|
||||
[self.arrfield addObject:field];
|
||||
}
|
||||
|
||||
float f_w = (UISCREEN_WIDTH-95)/2.0;
|
||||
UIButton *btcreate = [[UIButton alloc] init];
|
||||
[btcreate setTitle:@"梳理思路" forState:UIControlStateNormal];
|
||||
[btcreate setTitleColor:RGBCOLOR(108, 119, 246) forState:UIControlStateNormal];
|
||||
[btcreate.titleLabel setFont:[UIFont systemFontOfSize:16]];
|
||||
[btcreate.layer setMasksToBounds:YES];
|
||||
[btcreate.layer setCornerRadius:16];
|
||||
[btcreate.layer setBorderWidth:1];
|
||||
[btcreate.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor];
|
||||
[self addSubview:btcreate];
|
||||
[btcreate mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewlast.mas_bottom).offset(20);
|
||||
make.size.sizeOffset(CGSizeMake(f_w, 50));
|
||||
make.left.offset(20);
|
||||
}];
|
||||
[btcreate addTarget:self action:@selector(shuliAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
UIButton *btai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, f_w, 50)];
|
||||
[btai setTitle:@"提交" forState:UIControlStateNormal];
|
||||
[btai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
[btai.titleLabel setFont:[UIFont systemFontOfSize:16]];
|
||||
[btai.layer setMasksToBounds:YES];
|
||||
[btai.layer setCornerRadius:16];
|
||||
[self addSubview:btai];
|
||||
[btai mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewlast.mas_bottom).offset(20);
|
||||
make.size.sizeOffset(CGSizeMake(f_w, 50));
|
||||
make.left.equalTo(btcreate.mas_right).offset(15);
|
||||
}];
|
||||
[Tools changedView:btai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
|
||||
[btai addTarget:self action:@selector(sendAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(btai).offset(20);
|
||||
}];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
-(UITextField *)drawItemView:(UIView *)view title:(NSString *)title platch:(NSString *)platch tag:(int)tag
|
||||
{
|
||||
UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)];
|
||||
[view addSubview:viewline];
|
||||
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(20);
|
||||
make.top.offset(15);
|
||||
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:16]];
|
||||
[view addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(viewline);
|
||||
make.left.equalTo(viewline.mas_right).offset(6);
|
||||
}];
|
||||
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:RGBCOLOR(250, 250, 250)];
|
||||
[view addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(viewline);
|
||||
make.right.equalTo(view).offset(-20);
|
||||
make.top.equalTo(viewline.mas_bottom).offset(12);
|
||||
make.height.offset(40);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:12];
|
||||
|
||||
UITextField *field = [[UITextField alloc] init];
|
||||
[field setTextColor:RGBCOLOR(51, 51, 51)];
|
||||
[field setTextAlignment:NSTextAlignmentLeft];
|
||||
[field setFont:[UIFont systemFontOfSize:14]];
|
||||
[field setPlaceholder:platch];
|
||||
[viewback addSubview:field];
|
||||
[field mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(10);
|
||||
make.top.bottom.equalTo(viewback);
|
||||
make.right.equalTo(viewback).offset(-10);
|
||||
}];
|
||||
|
||||
if(tag>0)
|
||||
{
|
||||
UIImageView *imgvnext = [[UIImageView alloc] init];
|
||||
[imgvnext setImage:[UIImage imageNamed:@"znxz_next"]];
|
||||
[viewback addSubview:imgvnext];
|
||||
[imgvnext mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.offset(24);
|
||||
make.centerY.equalTo(viewback);
|
||||
make.right.equalTo(viewback).offset(-10);
|
||||
}];
|
||||
|
||||
UIButton *btitem = [[UIButton alloc] init];
|
||||
[viewback addSubview:btitem];
|
||||
[btitem mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(viewback);
|
||||
}];
|
||||
[btitem setTag:tag];
|
||||
[btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return field;
|
||||
}
|
||||
|
||||
-(void)itemAction:(UIButton *)sender
|
||||
{
|
||||
[self endEditing:YES];
|
||||
if(sender.tag==1)
|
||||
{
|
||||
TiCaiAlterView *view = [[TiCaiAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
|
||||
[self.viewController.view addSubview:view];
|
||||
[view setBackValue:^(NSString * _Nonnull name) {
|
||||
UITextField *field = self.arrfield[2];
|
||||
field.text = name;
|
||||
}];
|
||||
}
|
||||
else
|
||||
{
|
||||
ZhiShuAlterView *view = [[ZhiShuAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
|
||||
[self.viewController.view addSubview:view];
|
||||
[view setBackValue:^(NSString * _Nonnull name) {
|
||||
UITextField *field = self.arrfield[3];
|
||||
field.text = name;
|
||||
}];
|
||||
}
|
||||
}
|
||||
///梳理思路
|
||||
-(void)shuliAction
|
||||
{
|
||||
ChuangZuoSiLuViewController *vc = [ChuangZuoSiLuViewController new];
|
||||
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
///提交
|
||||
-(void)sendAction
|
||||
{
|
||||
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// ZhiNengXieZuoTopView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
typedef void(^ZhiNengXieZuoTopViewBack)(NSInteger tag);
|
||||
@interface ZhiNengXieZuoTopView : UIView
|
||||
///
|
||||
@property (nonatomic , strong) ZhiNengXieZuoTopViewBack backSelect;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,77 @@
|
|||
//
|
||||
// ZhiNengXieZuoTopView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiNengXieZuoTopView.h"
|
||||
|
||||
|
||||
@interface ZhiNengXieZuoTopView ()
|
||||
///
|
||||
@property (nonatomic , strong) UIButton *btselect;
|
||||
///
|
||||
@property (nonatomic , strong) UIImageView *imgvback;
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZhiNengXieZuoTopView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
NSArray *arrtt = @[@"全文写作",@"段落写作"];
|
||||
|
||||
float f_w =(UISCREEN_WIDTH-40)/2.0;
|
||||
for(int i = 0 ; i < arrtt.count; i++)
|
||||
{
|
||||
UIButton *btdenglu = [[UIButton alloc] init];
|
||||
[btdenglu setTitle:arrtt[i] forState:UIControlStateNormal];
|
||||
[btdenglu setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
|
||||
[btdenglu setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected];
|
||||
[btdenglu.titleLabel setFont:[UIFont systemFontOfSize:16]];
|
||||
[self addSubview:btdenglu];
|
||||
[btdenglu mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(self);
|
||||
make.left.offset(f_w*i);
|
||||
make.width.offset(f_w);
|
||||
}];
|
||||
[btdenglu setTag:i];
|
||||
[btdenglu addTarget:self action:@selector(topAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
if(i==0)
|
||||
{
|
||||
[btdenglu setSelected:YES];
|
||||
[btdenglu.titleLabel setFont:[UIFont boldSystemFontOfSize:20]];
|
||||
_btselect = btdenglu;
|
||||
}
|
||||
}
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
UIImageView *imgvback = [[UIImageView alloc] initWithFrame:CGRectMake(0, 33, 84, 8)];
|
||||
[imgvback setImage:[UIImage imageNamed:@"yd_pg_hd"]];
|
||||
[self addSubview:imgvback];
|
||||
imgvback.centerX = self.btselect.centerX;
|
||||
[self sendSubviewToBack:imgvback];
|
||||
self.imgvback = imgvback;
|
||||
});
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)topAction:(UIButton *)sender
|
||||
{
|
||||
if(sender.tag == self.btselect.tag)return;
|
||||
[self.btselect setSelected:NO];
|
||||
[self.btselect.titleLabel setFont:[UIFont systemFontOfSize:16]];
|
||||
|
||||
self.btselect = sender;
|
||||
[self.btselect setSelected:YES];
|
||||
[self.btselect.titleLabel setFont:[UIFont boldSystemFontOfSize:20]];
|
||||
self.imgvback.centerX = self.btselect.centerX;
|
||||
self.backSelect(sender.tag);
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// ZhiNengXieZuoView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZhiNengXieZuoView : UIView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,68 @@
|
|||
//
|
||||
// ZhiNengXieZuoView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ZhiNengXieZuoView.h"
|
||||
#import "ZhiNengXieZuoTopView.h"
|
||||
#import "ZhiNengXieZuoQuanWenView.h"
|
||||
|
||||
@interface ZhiNengXieZuoView ()
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZhiNengXieZuoView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
UIImage *image = [UIImage imageNamed:@"znxz_viewleft"];
|
||||
|
||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||
[imgvback setImage:[image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2.0, 20, image.size.height/2.0, image.size.width-20)]];
|
||||
[self addSubview:imgvback];
|
||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.offset(20);
|
||||
make.right.equalTo(self).offset(-20);
|
||||
}];
|
||||
[imgvback setUserInteractionEnabled:YES];
|
||||
[self drawInfoView:imgvback];
|
||||
|
||||
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
-(void)drawInfoView:(UIView *)view
|
||||
{
|
||||
ZhiNengXieZuoTopView *viewtop = [ZhiNengXieZuoTopView new];
|
||||
[view addSubview:viewtop];
|
||||
[viewtop mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(view);
|
||||
make.height.offset(52);
|
||||
}];
|
||||
[viewtop setBackSelect:^(NSInteger tag) {
|
||||
|
||||
}];
|
||||
|
||||
ZhiNengXieZuoQuanWenView *viewqw = [ZhiNengXieZuoQuanWenView new];
|
||||
[view addSubview:viewqw];
|
||||
[viewqw mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(view);
|
||||
make.top.equalTo(viewtop.mas_bottom);
|
||||
}];
|
||||
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(viewqw);
|
||||
}];
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// XieZuoXiangQingViewController.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "BaseViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XieZuoXiangQingViewController : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,42 @@
|
|||
//
|
||||
// XieZuoXiangQingViewController.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "XieZuoXiangQingViewController.h"
|
||||
#import "XieZuoXiangQingView.h"
|
||||
|
||||
|
||||
@interface XieZuoXiangQingViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation XieZuoXiangQingViewController
|
||||
- (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 clearColor]];
|
||||
[self.navigationView setMuenTitle:@"反馈" titleColor:RGBCOLOR(60, 60, 60)];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self.view setBackgroundColor:[UIColor whiteColor]];
|
||||
|
||||
XieZuoXiangQingView *view = [XieZuoXiangQingView new];
|
||||
[self.view addSubview:view];
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
make.top.offset(NavHeight);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// XieZuoXiangQingSiLuView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XieZuoXiangQingSiLuView : UIView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,159 @@
|
|||
//
|
||||
// XieZuoXiangQingSiLuView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "XieZuoXiangQingSiLuView.h"
|
||||
|
||||
@interface XieZuoXiangQingSiLuView ()
|
||||
///
|
||||
@property (nonatomic , strong) UIView *viewtop;
|
||||
///
|
||||
@property (nonatomic , strong) UIView *viewlast;
|
||||
///
|
||||
@property (nonatomic , strong) MASConstraint *selfBottom;
|
||||
|
||||
@end
|
||||
@implementation XieZuoXiangQingSiLuView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
[self setBackgroundColor:RGBCOLOR(236, 237, 252)];
|
||||
[self.layer setMasksToBounds:YES];
|
||||
[self.layer setCornerRadius:12];
|
||||
|
||||
UIView *viewtop = [[UIView alloc] init];
|
||||
[viewtop setBackgroundColor:RGBCOLOR(223, 225, 251)];
|
||||
[self addSubview:viewtop];
|
||||
[viewtop mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(self);
|
||||
make.height.offset(40);
|
||||
}];
|
||||
[viewtop.layer setMasksToBounds:YES];
|
||||
[viewtop.layer setCornerRadius:12];
|
||||
[self drawTopView:viewtop];
|
||||
_viewtop = viewtop;
|
||||
|
||||
UIView *viewlast = nil;
|
||||
NSArray *arrtt = @[@"作文题材",@"开头",@"中间",@"结尾"];
|
||||
for(int i = 0 ; i < arrtt.count; i++)
|
||||
{
|
||||
UIView *viewitem = [[UIView alloc] init];
|
||||
[self addSubview:viewitem];
|
||||
[viewitem mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(15);
|
||||
make.right.equalTo(self).offset(-15);
|
||||
if(viewlast)
|
||||
{
|
||||
make.top.equalTo(viewlast.mas_bottom).offset(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
make.top.equalTo(viewtop.mas_bottom).offset(15);
|
||||
}
|
||||
}];
|
||||
viewlast = viewitem;
|
||||
[self drawItemView:viewitem title:arrtt[i] content:@"选材:第一次露营的经历"];
|
||||
}
|
||||
_viewlast = viewlast;
|
||||
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
self.selfBottom = make.bottom.equalTo(viewtop);
|
||||
}];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)drawItemView:(UIView *)view title:(NSString *)title content:(NSString *)content
|
||||
{
|
||||
[view setBackgroundColor:RGBCOLOR(223, 225, 251)];
|
||||
[view.layer setMasksToBounds:YES];
|
||||
[view.layer setCornerRadius:12];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:title];
|
||||
[lbname setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont systemFontOfSize:12]];
|
||||
[view addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(13);
|
||||
make.centerY.equalTo(view);
|
||||
}];
|
||||
|
||||
UILabel *lbcontent = [[UILabel alloc] init];
|
||||
[lbcontent setText:content];
|
||||
[lbcontent setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbcontent setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbcontent setFont:[UIFont systemFontOfSize:12]];
|
||||
[lbcontent setNumberOfLines:0];
|
||||
[view addSubview:lbcontent];
|
||||
[lbcontent mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(71);
|
||||
make.right.equalTo(view).offset(-13);
|
||||
make.top.offset(10);
|
||||
}];
|
||||
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(lbcontent).offset(10);
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)drawTopView:(UIView *)view
|
||||
{
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"写作思路"];
|
||||
[lbname setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont systemFontOfSize:12]];
|
||||
[view addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(15);
|
||||
make.centerY.equalTo(view);
|
||||
}];
|
||||
|
||||
UIButton *btsz = [[UIButton alloc] init];
|
||||
[btsz setTitle:@"展开" forState:UIControlStateNormal];
|
||||
[btsz setTitle:@"收起" forState:UIControlStateSelected];
|
||||
[btsz setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal];
|
||||
[btsz setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateSelected];
|
||||
[btsz setImage:[UIImage imageNamed:@"展开"] forState:UIControlStateNormal];
|
||||
[btsz setImage:[UIImage imageNamed:@"收起"] forState:UIControlStateSelected];
|
||||
[btsz.titleLabel setFont:[UIFont systemFontOfSize:12]];
|
||||
[view addSubview:btsz];
|
||||
[btsz mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(view);
|
||||
make.right.equalTo(view).offset(-10);
|
||||
}];
|
||||
[btsz setIconInRightWithSpacing:2];
|
||||
[btsz addTarget:self action:@selector(btzkAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
}
|
||||
|
||||
-(void)btzkAction:(UIButton *)sender
|
||||
{
|
||||
sender.selected = !sender.selected;
|
||||
[self.selfBottom uninstall];
|
||||
if(sender.selected)
|
||||
{
|
||||
[self.layer setMasksToBounds:NO];
|
||||
[self.layer setCornerRadius:20];
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
self.selfBottom = make.bottom.equalTo(self.viewlast).offset(15);
|
||||
}];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.layer setMasksToBounds:YES];
|
||||
[self.layer setCornerRadius:12];
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
self.selfBottom = make.bottom.equalTo(self.viewtop);
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// XieZuoXiangQingView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XieZuoXiangQingView : UIView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,246 @@
|
|||
//
|
||||
// XieZuoXiangQingView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "XieZuoXiangQingView.h"
|
||||
#import "XieZuoXiangQingSiLuView.h"
|
||||
#import "FenXiangWenZhangAlterView.h"
|
||||
|
||||
|
||||
|
||||
@interface XieZuoXiangQingView ()
|
||||
///
|
||||
@property (nonatomic , strong) UIScrollView *scvback;
|
||||
|
||||
///
|
||||
@property (nonatomic , strong) NSArray *arrdata;
|
||||
///
|
||||
@property (nonatomic , strong) NSMutableArray *arrItems;
|
||||
|
||||
@property (nonatomic , assign) BOOL isdrawEnd;
|
||||
|
||||
@end
|
||||
|
||||
@implementation XieZuoXiangQingView
|
||||
|
||||
-(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(-TabHeight-20);
|
||||
}];
|
||||
_scvback = scvback;
|
||||
[self drawInfoView:scvback];
|
||||
|
||||
|
||||
UIView *viewbottom = [[UIView alloc] init];
|
||||
[viewbottom setBackgroundColor:[UIColor whiteColor]];
|
||||
[self addSubview:viewbottom];
|
||||
[viewbottom mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self);
|
||||
make.top.equalTo(scvback.mas_bottom);
|
||||
}];
|
||||
[self drawBottomView:viewbottom];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)drawInfoView:(UIScrollView *)view
|
||||
{
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"写人作文"];
|
||||
[lbname setTextColor:RGBCOLOR(51, 51, 51)];
|
||||
[lbname setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbname setFont:[UIFont boldSystemFontOfSize:24]];
|
||||
[view addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.offset(20);
|
||||
make.width.equalTo(view).offset(-40);
|
||||
}];
|
||||
|
||||
UILabel *lbyaoqiu = [[UILabel alloc] init];
|
||||
[lbyaoqiu setText:@"全文要求:写给生命"];
|
||||
[lbyaoqiu setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbyaoqiu setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbyaoqiu setFont:[UIFont systemFontOfSize:12]];
|
||||
[view addSubview:lbyaoqiu];
|
||||
[lbyaoqiu mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(lbname);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(15);
|
||||
}];
|
||||
|
||||
UILabel *lbzhishu = [[UILabel alloc] init];
|
||||
[lbzhishu setText:@"800字"];
|
||||
[lbzhishu setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbzhishu setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbzhishu setFont:[UIFont systemFontOfSize:12]];
|
||||
[view addSubview:lbzhishu];
|
||||
[lbzhishu mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(lbname);
|
||||
make.top.equalTo(lbyaoqiu.mas_bottom).offset(15);
|
||||
}];
|
||||
|
||||
XieZuoXiangQingSiLuView *viewsl = [XieZuoXiangQingSiLuView new];
|
||||
[view addSubview:viewsl];
|
||||
[viewsl mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(lbname);
|
||||
make.top.equalTo(lbzhishu.mas_bottom).offset(18);
|
||||
}];
|
||||
|
||||
|
||||
self.arrItems = [NSMutableArray new];
|
||||
self.arrdata = @[@"",@"",@"",@""];
|
||||
[self drawItemLastView:viewsl tag:0 bottom:nil];
|
||||
}
|
||||
-(void)drawItemLastView:(UIView *)view tag:(int)tag bottom:(MASConstraint *)bottom
|
||||
{
|
||||
ViewLable *lbwz = [[ViewLable alloc] init];
|
||||
[self.scvback addSubview:lbwz];
|
||||
[lbwz mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(20);
|
||||
make.width.equalTo(self.scvback).offset(-40);
|
||||
make.top.equalTo(view.mas_bottom).offset(20);
|
||||
}];
|
||||
lbwz.textColor = RGBCOLOR(61, 61, 61);
|
||||
lbwz.textFont = [UIFont systemFontOfSize:16];
|
||||
lbwz.fspeed = 0.02;
|
||||
lbwz.strValue = [NSString stringWithFormat:@" %@",@"你的作文非常出色,但是可以在语言表达上更加生动有趣,增加一些形象的比喻和细节描写,让读者更加深入地了解你的思考和感受。同时,可以适当增加一些个人的经历和感受,让作文更加具有个性化和独特性。"];
|
||||
__strong ViewLable *lbwzSelf = lbwz;
|
||||
__block MASConstraint *bottomScroll;
|
||||
[lbwz setBackHeight:^(float fheight, BOOL isend) {
|
||||
if(isend)
|
||||
{
|
||||
if(tag<self.arrdata.count-1)
|
||||
{
|
||||
[self drawItemLastView:lbwzSelf tag:tag+1 bottom:bottomScroll];
|
||||
}
|
||||
else
|
||||
{///全部绘制完
|
||||
self.isdrawEnd = YES;
|
||||
}
|
||||
}
|
||||
if(self.scvback.contentSize.height-self.scvback.height>0)
|
||||
{
|
||||
[self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)];
|
||||
}
|
||||
}];
|
||||
[self.arrItems addObject:lbwz];
|
||||
if(bottom)
|
||||
{
|
||||
[bottom uninstall];
|
||||
}
|
||||
[self.scvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
bottomScroll = make.bottom.equalTo(lbwz.mas_bottom).offset(20);
|
||||
}];
|
||||
|
||||
UIButton *btcx = [[UIButton alloc] init];
|
||||
[btcx setImage:[UIImage imageNamed:@"znxz_chongxie"] forState:UIControlStateNormal];
|
||||
[self.scvback addSubview:btcx];
|
||||
[btcx mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.sizeOffset(CGSizeMake(24, 24));
|
||||
make.left.offset(23);
|
||||
make.top.equalTo(view.mas_bottom).offset(17);
|
||||
}];
|
||||
[btcx addTarget:self action:@selector(cxAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[btcx setTag:tag];
|
||||
}
|
||||
|
||||
|
||||
-(void)drawBottomView:(UIView *)view
|
||||
{
|
||||
UIView *viewline = [[UIView alloc] init];
|
||||
[viewline setBackgroundColor:RGBCOLOR(248, 248, 248)];
|
||||
[view addSubview:viewline];
|
||||
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(view);
|
||||
make.height.offset(1);
|
||||
}];
|
||||
|
||||
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:10];
|
||||
[btchange.layer setBorderWidth:1];
|
||||
[btchange.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor];
|
||||
[view addSubview:btchange];
|
||||
[btchange mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(20);
|
||||
make.top.offset(10);
|
||||
make.height.offset(40);
|
||||
make.width.offset((UISCREEN_WIDTH-52)/2.0);
|
||||
}];
|
||||
[btchange setTag:0];
|
||||
[btchange addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
UIButton *btcreate = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, (UISCREEN_WIDTH-52)/2.0, 40)];
|
||||
[btcreate setTitle:@"保存分享" forState:UIControlStateNormal];
|
||||
[btcreate setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
[btcreate.titleLabel setFont:[UIFont boldSystemFontOfSize:18]];
|
||||
[btcreate.layer setMasksToBounds:YES];
|
||||
[btcreate.layer setCornerRadius:10];
|
||||
[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];
|
||||
[Tools changedView:btcreate colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
|
||||
}
|
||||
-(void)cxAction:(UIButton *)sender
|
||||
{
|
||||
if(self.isdrawEnd==NO)
|
||||
{
|
||||
[HXHud showMessage:@"请等待写作完成" afterDelayType:0];
|
||||
return;
|
||||
}
|
||||
self.isdrawEnd = NO;
|
||||
ViewLable *lbwz = self.arrItems[sender.tag];
|
||||
lbwz.strValue = [NSString stringWithFormat:@" %@",@"2341234123你的作文非常出色,但是可以在语言表达上更加生动有趣,增加一些形象的比喻和细节描写,让读者更加深入地了解你的思考和感受。同时,可以适当增加一些个人的经历和感受,让作文更加具有个性化和独特性。"];
|
||||
[lbwz setBackHeight:^(float fheight, BOOL isend) {
|
||||
if(isend)
|
||||
{
|
||||
self.isdrawEnd = YES;
|
||||
}
|
||||
}];
|
||||
}
|
||||
-(void)bottomAction:(UIButton *)sender
|
||||
{
|
||||
if(self.isdrawEnd==NO)
|
||||
{
|
||||
[HXHud showMessage:@"请等待写作完成" afterDelayType:0];
|
||||
return;
|
||||
}
|
||||
switch (sender.tag) {
|
||||
case 0:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
FenXiangWenZhangAlterView *view = [[FenXiangWenZhangAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
|
||||
[self.viewController.view addSubview:view];
|
||||
[view setBackValue:^(NSInteger tag) {
|
||||
|
||||
}];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// ChuangZuoSiLuViewController.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "BaseViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ChuangZuoSiLuViewController : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,48 @@
|
|||
//
|
||||
// ChuangZuoSiLuViewController.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ChuangZuoSiLuViewController.h"
|
||||
#import "ChuangZuoSiLuView.h"
|
||||
|
||||
@interface ChuangZuoSiLuViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation ChuangZuoSiLuViewController
|
||||
- (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 clearColor]];
|
||||
[self.navigationView setMuenTitle:@"反馈" titleColor:RGBCOLOR(60, 60, 60)];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self.view setBackgroundColor:[UIColor whiteColor]];
|
||||
|
||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||
[imgvback setImage:[UIImage imageNamed:@"znxz_back"]];
|
||||
[self.view addSubview:imgvback];
|
||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.view);
|
||||
}];
|
||||
[self.view sendSubviewToBack:imgvback];
|
||||
|
||||
ChuangZuoSiLuView *view = [ChuangZuoSiLuView new];
|
||||
[self.view addSubview:view];
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
make.top.offset(NavHeight);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// ChuangZuoSiLuView.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ChuangZuoSiLuView : UIView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,259 @@
|
|||
//
|
||||
// ChuangZuoSiLuView.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/30.
|
||||
//
|
||||
|
||||
#import "ChuangZuoSiLuView.h"
|
||||
#import "XieZuoXiangQingViewController.h"
|
||||
|
||||
typedef void(^ChuangZuoSiLuViewDraw)(void);
|
||||
@interface ChuangZuoSiLuView ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation ChuangZuoSiLuView
|
||||
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:[UIColor whiteColor]];
|
||||
[self addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.offset(20);
|
||||
make.width.offset(UISCREEN_WIDTH-40);
|
||||
make.bottom.equalTo(self).offset(-TabHeight);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:20];
|
||||
|
||||
UIScrollView *scvback = [[UIScrollView alloc] init];
|
||||
[scvback setShowsVerticalScrollIndicator:NO];
|
||||
[viewback addSubview:scvback];
|
||||
[scvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.offset(0);
|
||||
make.width.equalTo(viewback);
|
||||
make.height.equalTo(viewback).offset(-90);
|
||||
}];
|
||||
[self drawInfoView:scvback];
|
||||
|
||||
float f_w = (UISCREEN_WIDTH-95)/2.0;
|
||||
UIButton *btcreate = [[UIButton alloc] init];
|
||||
[btcreate setTitle:@"换个思路" forState:UIControlStateNormal];
|
||||
[btcreate setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal];
|
||||
[btcreate.titleLabel setFont:[UIFont systemFontOfSize:18]];
|
||||
[btcreate.layer setMasksToBounds:YES];
|
||||
[btcreate.layer setCornerRadius:16];
|
||||
[btcreate.layer setBorderWidth:1];
|
||||
[btcreate.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor];
|
||||
[viewback addSubview:btcreate];
|
||||
[btcreate mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(scvback.mas_bottom).offset(20);
|
||||
make.size.sizeOffset(CGSizeMake(f_w, 50));
|
||||
make.left.offset(20);
|
||||
}];
|
||||
[btcreate addTarget:self action:@selector(changeAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
UIButton *btai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, f_w, 50)];
|
||||
[btai setTitle:@"所思成文" forState:UIControlStateNormal];
|
||||
[btai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
[btai.titleLabel setFont:[UIFont systemFontOfSize:16]];
|
||||
[btai.layer setMasksToBounds:YES];
|
||||
[btai.layer setCornerRadius:16];
|
||||
[viewback addSubview:btai];
|
||||
[btai mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(scvback.mas_bottom).offset(20);
|
||||
make.size.sizeOffset(CGSizeMake(f_w, 50));
|
||||
make.left.equalTo(btcreate.mas_right).offset(15);
|
||||
}];
|
||||
[Tools changedView:btai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
|
||||
[btai addTarget:self action:@selector(sendAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
|
||||
|
||||
UILabel *lbts = [[UILabel alloc] init];
|
||||
[lbts setText:@"该结果由AI生成,请注意甄别"];
|
||||
[lbts setTextColor:RGBCOLOR(109, 109, 109)];
|
||||
[lbts setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbts setFont:[UIFont systemFontOfSize:12]];
|
||||
[self addSubview:lbts];
|
||||
[lbts mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewback.mas_bottom).offset(20);
|
||||
make.centerX.equalTo(viewback);
|
||||
}];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)drawInfoView:(UIScrollView *)view
|
||||
{
|
||||
///题材
|
||||
UIView *viewticai = [[UIView alloc] init];
|
||||
[view addSubview:viewticai];
|
||||
[viewticai mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.offset(23);
|
||||
make.left.width.equalTo(view);
|
||||
}];
|
||||
[self drawOneTextView:viewticai title:@"题材" back:^{
|
||||
|
||||
}];
|
||||
|
||||
///开头
|
||||
UIView *viewkaitou = [[UIView alloc] init];
|
||||
[view addSubview:viewkaitou];
|
||||
[viewkaitou mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewticai.mas_bottom).offset(18);
|
||||
make.left.width.equalTo(view);
|
||||
}];
|
||||
[self drawOneTextView:viewkaitou title:@"开头" back:^{
|
||||
|
||||
}];
|
||||
|
||||
///中间
|
||||
UIView *viewzhongjian = [[UIView alloc] init];
|
||||
[view addSubview:viewzhongjian];
|
||||
[viewzhongjian mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewkaitou.mas_bottom).offset(18);
|
||||
make.left.width.equalTo(view);
|
||||
}];
|
||||
[self drawCenterView:viewzhongjian back:^{
|
||||
|
||||
}];
|
||||
|
||||
|
||||
///结尾
|
||||
UIView *viewjiewei = [[UIView alloc] init];
|
||||
[view addSubview:viewjiewei];
|
||||
[viewjiewei mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(viewzhongjian.mas_bottom).offset(18);
|
||||
make.left.width.equalTo(view);
|
||||
}];
|
||||
[self drawOneTextView:viewjiewei title:@"结尾" back:^{
|
||||
|
||||
}];
|
||||
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(viewjiewei).offset(20);
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)drawCenterView:(UIView *)view back:(ChuangZuoSiLuViewDraw)back
|
||||
{
|
||||
UIView *viewtop = [self drawItemView:view title:@"中间"];
|
||||
|
||||
///
|
||||
ViewLable *lbticai = [self drawItem:view lastview:viewtop];
|
||||
lbticai.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。";
|
||||
[lbticai setBackHeight:^(float fheight, BOOL isend) {
|
||||
if(isend)
|
||||
{///这里如果有多个需要处理
|
||||
// back();
|
||||
}
|
||||
}];
|
||||
|
||||
|
||||
ViewLable *lbticai1 = [self drawItem:view lastview:lbticai.superview];
|
||||
lbticai1.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。";
|
||||
[lbticai1 setBackHeight:^(float fheight, BOOL isend) {
|
||||
if(isend)
|
||||
{///这里如果有多个需要处理
|
||||
back();
|
||||
}
|
||||
}];
|
||||
|
||||
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(lbticai1.superview);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
|
||||
-(void)drawOneTextView:(UIView *)view title:(NSString *)title back:(ChuangZuoSiLuViewDraw)back
|
||||
{
|
||||
ViewLable *lbticai = [self drawItem:view lastview:[self drawItemView:view title:title]];
|
||||
lbticai.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。";
|
||||
[lbticai setBackHeight:^(float fheight, BOOL isend) {
|
||||
if(isend)
|
||||
{
|
||||
back();
|
||||
}
|
||||
}];
|
||||
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(lbticai.superview);
|
||||
}];
|
||||
}
|
||||
|
||||
-(UIView *)drawItemView:(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(20);
|
||||
make.top.offset(0);
|
||||
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:16]];
|
||||
[view addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(viewline);
|
||||
make.left.equalTo(viewline.mas_right).offset(6);
|
||||
}];
|
||||
return viewline;
|
||||
}
|
||||
-(ViewLable *)drawItem:(UIView *)view lastview:(UIView *)lastview
|
||||
{
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:RGBCOLOR(240, 241, 254)];
|
||||
[view addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(20);
|
||||
make.width.equalTo(view).offset(-40);
|
||||
make.top.equalTo(lastview.mas_bottom).offset(12);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:12];
|
||||
|
||||
ViewLable *lbwz = [[ViewLable alloc] init];
|
||||
[viewback addSubview:lbwz];
|
||||
[lbwz mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(10);
|
||||
make.top.offset(10);
|
||||
make.right.equalTo(viewback).offset(-10);
|
||||
}];
|
||||
lbwz.textColor = RGBCOLOR(61, 61, 61);
|
||||
lbwz.textFont = [UIFont systemFontOfSize:14];
|
||||
lbwz.fspeed = 0.02;
|
||||
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.bottom.equalTo(lbwz).offset(10);
|
||||
}];
|
||||
|
||||
return lbwz;
|
||||
}
|
||||
|
||||
|
||||
-(void)changeAction
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
-(void)sendAction
|
||||
{
|
||||
XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new];
|
||||
[self.viewController.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// KeTangXieZuoViewController.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "BaseViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KeTangXieZuoViewController : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,85 @@
|
|||
//
|
||||
// KeTangXieZuoViewController.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "KeTangXieZuoViewController.h"
|
||||
#import "KeTangXieZuoCollectionViewCell.h"
|
||||
#import "KeTangXieZuoNJViewController.h"
|
||||
|
||||
@interface KeTangXieZuoViewController ()<UICollectionViewDelegate,UICollectionViewDataSource>
|
||||
///
|
||||
@property (nonatomic , strong) UICollectionView *collect;
|
||||
|
||||
@end
|
||||
|
||||
@implementation KeTangXieZuoViewController
|
||||
- (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]];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self.view setBackgroundColor:[UIColor whiteColor]];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
layout.minimumLineSpacing = 0;
|
||||
layout.minimumInteritemSpacing = 0;
|
||||
UICollectionView *collect = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
|
||||
[collect setDelegate:self];
|
||||
[collect setDataSource:self];
|
||||
[collect setBackgroundColor:[UIColor clearColor]];
|
||||
[self.view addSubview:collect];
|
||||
[collect mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
make.top.offset(NavHeight);
|
||||
}];
|
||||
[collect registerClass:[KeTangXieZuoCollectionViewCell class] forCellWithReuseIdentifier:@"KeTangXieZuoCollectionViewCell"];
|
||||
_collect = collect;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - UICollectionView
|
||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
||||
{
|
||||
return 9;
|
||||
}
|
||||
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
KeTangXieZuoCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"KeTangXieZuoCollectionViewCell" forIndexPath:indexPath];
|
||||
|
||||
return cell;
|
||||
}
|
||||
//定义每个section的间距
|
||||
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{
|
||||
|
||||
return UIEdgeInsetsMake(16, 22, 0, 22);
|
||||
}
|
||||
//纵向cell间距
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section{
|
||||
return 0;
|
||||
}
|
||||
//cell 间距
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout ForSectionAtIndex:(NSInteger)section{
|
||||
return 10;
|
||||
}
|
||||
// 定义每个UICollectionViewCell 的大小
|
||||
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
return CGSizeMake((UISCREEN_WIDTH - 54)/2.0, (UISCREEN_WIDTH - 54)/2.0*226/160+48);
|
||||
}
|
||||
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
KeTangXieZuoNJViewController *vc = [KeTangXieZuoNJViewController new];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// KeTangXieZuoCollectionViewCell.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KeTangXieZuoCollectionViewCell : UICollectionViewCell
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,54 @@
|
|||
//
|
||||
// KeTangXieZuoCollectionViewCell.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "KeTangXieZuoCollectionViewCell.h"
|
||||
|
||||
|
||||
@interface KeTangXieZuoCollectionViewCell ()
|
||||
///
|
||||
@property (nonatomic , strong) UIImageView *imgvback;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbname;
|
||||
@end
|
||||
|
||||
@implementation KeTangXieZuoCollectionViewCell
|
||||
-(id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if(self = [super initWithFrame:frame])
|
||||
{
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:[UIColor whiteColor]];
|
||||
[self.contentView addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self);
|
||||
}];
|
||||
|
||||
UIImageView *imgvback = [[UIImageView alloc] init];
|
||||
[imgvback setImage:[UIImage imageNamed:@"book_nomo"]];
|
||||
[viewback addSubview:imgvback];
|
||||
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(viewback);
|
||||
make.bottom.equalTo(viewback).offset(-48);
|
||||
}];
|
||||
_imgvback = imgvback;
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"三年级上"];
|
||||
[lbname setTextColor:RGBCOLOR(26, 26, 26)];
|
||||
[lbname setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbname setFont:[UIFont systemFontOfSize:15]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(viewback);
|
||||
make.top.equalTo(imgvback.mas_bottom).offset(12);
|
||||
}];
|
||||
_lbname = lbname;
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// KeTangXieZuoNJViewController.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "BaseViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KeTangXieZuoNJViewController : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,96 @@
|
|||
//
|
||||
// KeTangXieZuoNJViewController.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "KeTangXieZuoNJViewController.h"
|
||||
#import "KeTangXieZuoNJTableViewCell.h"
|
||||
#import "KeTangXieZuoXiangQingViewController.h"
|
||||
|
||||
@interface KeTangXieZuoNJViewController ()<UITableViewDelegate,UITableViewDataSource>
|
||||
///
|
||||
@property (nonatomic , strong) UITableView *tableView;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@implementation KeTangXieZuoNJViewController
|
||||
- (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]];
|
||||
}
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self.view setBackgroundColor:RGBCOLOR(248, 248, 248)];
|
||||
|
||||
UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
|
||||
[tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
|
||||
[tableView setBackgroundColor:[UIColor clearColor]];
|
||||
[tableView setDelegate:self];
|
||||
[tableView setDataSource:self];
|
||||
[self.view addSubview:tableView];
|
||||
[tableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.equalTo(self.view);
|
||||
make.top.offset(NavHeight);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - UITableView
|
||||
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
static NSString *strcell = @"KeTangXieZuoNJTableViewCell";
|
||||
KeTangXieZuoNJTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell];
|
||||
if(!cell)
|
||||
{
|
||||
cell = [[KeTangXieZuoNJTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strcell];
|
||||
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
|
||||
[cell setBackgroundColor:[UIColor clearColor]];
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
if(section==0)return 10;
|
||||
return 0.01;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
return 155;
|
||||
}
|
||||
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
return [UIView new];
|
||||
}
|
||||
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
|
||||
{
|
||||
return [UIView new];
|
||||
}
|
||||
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
KeTangXieZuoXiangQingViewController *vc = [KeTangXieZuoXiangQingViewController new];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// KeTangXieZuoNJTableViewCell.h
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KeTangXieZuoNJTableViewCell : UITableViewCell
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,135 @@
|
|||
//
|
||||
// KeTangXieZuoNJTableViewCell.m
|
||||
// ProductApp
|
||||
//
|
||||
// Created by 工作 on 2024/9/29.
|
||||
//
|
||||
|
||||
#import "KeTangXieZuoNJTableViewCell.h"
|
||||
|
||||
|
||||
@interface KeTangXieZuoNJTableViewCell ()
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbname;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbcontent;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbnumber;
|
||||
///
|
||||
@property (nonatomic , strong) NSString *value;
|
||||
///
|
||||
@property (nonatomic , strong) UIView *viewtype;
|
||||
///
|
||||
@property (nonatomic , strong) UILabel *lbtype;
|
||||
|
||||
@end
|
||||
|
||||
@implementation KeTangXieZuoNJTableViewCell
|
||||
|
||||
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
|
||||
{
|
||||
if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
|
||||
{
|
||||
UIView *viewback = [[UIView alloc] init];
|
||||
[viewback setBackgroundColor:[UIColor whiteColor]];
|
||||
[self.contentView addSubview:viewback];
|
||||
[viewback mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.bottom.equalTo(self);
|
||||
make.left.offset(16);
|
||||
make.right.equalTo(self).offset(-16);
|
||||
}];
|
||||
[viewback.layer setMasksToBounds:YES];
|
||||
[viewback.layer setCornerRadius:8];
|
||||
|
||||
UILabel *lbname = [[UILabel alloc] init];
|
||||
[lbname setText:@"假如我是一颗小星星"];
|
||||
[lbname setTextColor:RGBCOLOR(26, 26, 26)];
|
||||
[lbname setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbname setFont:[UIFont systemFontOfSize:16]];
|
||||
[viewback addSubview:lbname];
|
||||
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(12);
|
||||
make.top.offset(14);
|
||||
make.right.equalTo(viewback).offset(-12);
|
||||
}];
|
||||
_lbname = lbname;
|
||||
|
||||
UILabel *lbcontent = [[UILabel alloc] init];
|
||||
[lbcontent setText:@"假如我是一颗小星星,我愿意紧紧地围绕在月亮身边,静静地听她讲美丽动人的故事,嫦娥、玉兔,还有吴刚的桂花酒……"];
|
||||
[lbcontent setTextColor:RGBCOLOR(51, 51, 51)];
|
||||
[lbcontent setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbcontent setFont:[UIFont systemFontOfSize:14]];
|
||||
[lbcontent setNumberOfLines:3];
|
||||
[viewback addSubview:lbcontent];
|
||||
[lbcontent mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(lbname);
|
||||
make.top.equalTo(lbname.mas_bottom).offset(8);
|
||||
}];
|
||||
_lbcontent = lbcontent;
|
||||
|
||||
UIView *viewline = [[UIView alloc] init];
|
||||
[viewline setBackgroundColor:RGBCOLOR(248, 248, 248)];
|
||||
[viewback addSubview:viewline];
|
||||
[viewline mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(lbcontent);
|
||||
make.height.offset(1);
|
||||
make.top.equalTo(lbcontent.mas_bottom).offset(12);
|
||||
}];
|
||||
|
||||
UILabel *lbnumber = [[UILabel alloc] init];
|
||||
[lbnumber setText:@"一单元上 | 300字"];
|
||||
[lbnumber setTextColor:RGBCOLOR(153, 153, 153)];
|
||||
[lbnumber setTextAlignment:NSTextAlignmentLeft];
|
||||
[lbnumber setFont:[UIFont systemFontOfSize:12]];
|
||||
[viewback addSubview:lbnumber];
|
||||
[lbnumber mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.offset(16);
|
||||
make.top.equalTo(viewline.mas_bottom).offset(16);
|
||||
}];
|
||||
_lbnumber = lbnumber;
|
||||
|
||||
UIButton *btdetail = [[UIButton alloc] init];
|
||||
[btdetail setTitle:@"查看详情" forState:UIControlStateNormal];
|
||||
[btdetail setTitleColor:RGBCOLOR(26, 26, 26) forState:UIControlStateNormal];
|
||||
[btdetail.titleLabel setFont:[UIFont systemFontOfSize:12]];
|
||||
[btdetail.layer setMasksToBounds:YES];
|
||||
[btdetail.layer setCornerRadius:5];
|
||||
[btdetail.layer setBorderWidth:1];
|
||||
[btdetail.layer setBorderColor:RGBCOLOR(225, 225, 225).CGColor];
|
||||
[viewback addSubview:btdetail];
|
||||
[btdetail mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.sizeOffset(CGSizeMake(60, 24));
|
||||
make.right.equalTo(viewback).offset(-12);
|
||||
make.centerY.equalTo(lbnumber);
|
||||
}];
|
||||
[btdetail setUserInteractionEnabled:NO];
|
||||
|
||||
UIView *viewtype = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 38, 18)];
|
||||
[viewback addSubview:viewtype];
|
||||
[viewtype mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.top.equalTo(viewback);
|
||||
make.width.offset(38);
|
||||
make.height.offset(18);
|
||||
}];
|
||||
_viewtype = viewtype;
|
||||
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewtype.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomLeft cornerRadii:CGSizeMake(8,8)];
|
||||
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
||||
maskLayer.frame = viewtype.bounds;
|
||||
maskLayer.path = maskPath.CGPath;
|
||||
viewtype.layer.mask = maskLayer;
|
||||
[Tools changedView:viewtype colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
|
||||
|
||||
UILabel *lbtype = [[UILabel alloc] init];
|
||||
[lbtype setText:@"记叙文"];
|
||||
[lbtype setTextColor:[UIColor whiteColor]];
|
||||
[lbtype setTextAlignment:NSTextAlignmentCenter];
|
||||
[lbtype setFont:[UIFont systemFontOfSize:10]];
|
||||
[viewtype addSubview:lbtype];
|
||||
[lbtype mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.center.equalTo(viewtype);
|
||||
}];
|
||||
_lbtype = lbtype;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|