Skip to content

Commit 2a00a73

Browse files
committed
tab设计 标签分类
1 parent 25c601a commit 2a00a73

19 files changed

Lines changed: 883 additions & 239 deletions

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
3A3878401AE295970078D5DE /* ResetLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38783F1AE295970078D5DE /* ResetLabelCell.m */; };
3232
3A3878451AE296240078D5DE /* EditLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878421AE296240078D5DE /* EditLabelCell.m */; };
3333
3A3878461AE296240078D5DE /* EditLabelHeadCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878441AE296240078D5DE /* EditLabelHeadCell.m */; };
34+
3A3878491AE36ED70078D5DE /* TopicListButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878481AE36ED70078D5DE /* TopicListButton.m */; };
35+
3A38784C1AE36EF00078D5DE /* TopicListView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38784B1AE36EF00078D5DE /* TopicListView.m */; };
3436
4E03AC9A1A5BDDF9002B000B /* STARTIMAGE.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC991A5BDDF9002B000B /* STARTIMAGE.jpg */; };
3537
4E03ACA01A5CEB41002B000B /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC9E1A5CEB41002B000B /* [email protected] */; };
3638
4E03ACA11A5CEB41002B000B /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC9F1A5CEB41002B000B /* [email protected] */; };
@@ -651,6 +653,10 @@
651653
3A3878421AE296240078D5DE /* EditLabelCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditLabelCell.m; sourceTree = "<group>"; };
652654
3A3878431AE296240078D5DE /* EditLabelHeadCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditLabelHeadCell.h; sourceTree = "<group>"; };
653655
3A3878441AE296240078D5DE /* EditLabelHeadCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditLabelHeadCell.m; sourceTree = "<group>"; };
656+
3A3878471AE36ED70078D5DE /* TopicListButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicListButton.h; sourceTree = "<group>"; };
657+
3A3878481AE36ED70078D5DE /* TopicListButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicListButton.m; sourceTree = "<group>"; };
658+
3A38784A1AE36EF00078D5DE /* TopicListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicListView.h; sourceTree = "<group>"; };
659+
3A38784B1AE36EF00078D5DE /* TopicListView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicListView.m; sourceTree = "<group>"; };
654660
3B024F2227BD4152BC7C9A7A /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
655661
4E03AC991A5BDDF9002B000B /* STARTIMAGE.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = STARTIMAGE.jpg; sourceTree = "<group>"; };
656662
4E03AC9E1A5CEB41002B000B /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -2931,6 +2937,10 @@
29312937
8EA6D0F419E240C40076D59C /* ProjectTasksView.m */,
29322938
8EA6D0F919E240C40076D59C /* ProjectTopicsView.h */,
29332939
8EA6D0FA19E240C40076D59C /* ProjectTopicsView.m */,
2940+
3A38784A1AE36EF00078D5DE /* TopicListView.h */,
2941+
3A38784B1AE36EF00078D5DE /* TopicListView.m */,
2942+
3A3878471AE36ED70078D5DE /* TopicListButton.h */,
2943+
3A3878481AE36ED70078D5DE /* TopicListButton.m */,
29342944
8EA6D0E919E240C40076D59C /* ProjectActivityListView.h */,
29352945
8EA6D0EA19E240C40076D59C /* ProjectActivityListView.m */,
29362946
8EA6D0EF19E240C40076D59C /* ProjectTaskListView.h */,
@@ -3681,13 +3691,15 @@
36813691
0AB591AC1AB6D2F60076C454 /* TweetSendLocaitonMapViewController.m in Sources */,
36823692
4EA7F1611A6D192B00A046BD /* UIButton+WebCache.m in Sources */,
36833693
8EE72BE419E3F2E8002C11D9 /* SDWebImageManager+MJ.m in Sources */,
3694+
3A38784C1AE36EF00078D5DE /* TopicListView.m in Sources */,
36843695
8E1C3DEA19E7D58A00EF3032 /* AbstractActionSheetPicker.m in Sources */,
36853696
8EA6D1AF19E240C40076D59C /* CodingTips.m in Sources */,
36863697
8EF643C219FF7E2900F7EEB0 /* TaskCommentTopCell.m in Sources */,
36873698
8E64ED7D19ED0CE3006E99DA /* QBAssetsCollectionOverlayView.m in Sources */,
36883699
8EA6D14919E240C40076D59C /* UserTweetsViewController.m in Sources */,
36893700
4ECE8AD71A3943E80021E29C /* DownMenuCell.m in Sources */,
36903701
4E6C41201A846AC30098DC17 /* RFToolbarButton.m in Sources */,
3702+
3A3878491AE36ED70078D5DE /* TopicListButton.m in Sources */,
36913703
4ECE8B011A3946C10021E29C /* ImageSizeManager.m in Sources */,
36923704
8EA6D1B319E240C40076D59C /* File.m in Sources */,
36933705
4EABD25A1AD3CB4A005E515F /* UIMessageInputView_CCell.m in Sources */,

Coding_iOS/Controllers/EditLabelViewController.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ - (NSString *)toLabelPath
106106
return [NSString stringWithFormat:@"api/project/%d/topic/label?", _curProTopic.project_id.intValue];
107107
}
108108

109+
- (NSString *)toDelPath:(NSInteger)index
110+
{
111+
ProjectTopicLabel *ptLabel = [_labels objectAtIndex:index];
112+
return [NSString stringWithFormat:@"api/project/%d/topic/label/%lld", _curProTopic.project_id.intValue, ptLabel.id.longLongValue];
113+
}
114+
109115
#pragma mark - click
110116
- (void)okBtnClick
111117
{
@@ -272,8 +278,7 @@ - (void)renameLabel:(NSInteger)index
272278
- (void)deleteLabel:(NSInteger)index
273279
{
274280
__weak typeof(self) weakSelf = self;
275-
ProjectTopicLabel *ptLabel = [_labels objectAtIndex:index];
276-
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Del_WithPath:[ptLabel toDelPath] andBlock:^(id data, NSError *error) {
281+
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Del_WithPath:[self toDelPath:index] andBlock:^(id data, NSError *error) {
277282
if (!error) {
278283
[weakSelf.labels removeObjectAtIndex:index];
279284
[weakSelf.myTableView reloadData];

0 commit comments

Comments
 (0)