Skip to content

Commit 42ab5b7

Browse files
committed
重构一下代码。。
1 parent 697d07a commit 42ab5b7

16 files changed

Lines changed: 161 additions & 170 deletions

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
0AB591B01AB6D6BE0076C454 /* TweetSendMapAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AB591AF1AB6D6BE0076C454 /* TweetSendMapAnnotation.m */; };
2626
3A3878371AE293D50078D5DE /* EditLabelViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878361AE293D50078D5DE /* EditLabelViewController.m */; };
2727
3A38783A1AE2949E0078D5DE /* ResetLabelViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878391AE2949E0078D5DE /* ResetLabelViewController.m */; };
28-
3A38783D1AE295090078D5DE /* ProjectTopicLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38783C1AE295090078D5DE /* ProjectTopicLabel.m */; };
2928
3A3878401AE295970078D5DE /* ResetLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38783F1AE295970078D5DE /* ResetLabelCell.m */; };
3029
3A3878451AE296240078D5DE /* EditLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878421AE296240078D5DE /* EditLabelCell.m */; };
3130
3A3878461AE296240078D5DE /* EditLabelHeadCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878441AE296240078D5DE /* EditLabelHeadCell.m */; };
@@ -194,6 +193,7 @@
194193
4E6C41201A846AC30098DC17 /* RFToolbarButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E6C411E1A846AC30098DC17 /* RFToolbarButton.m */; };
195194
4E6D71891A75F00E005AD988 /* YLGIFImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E6D71861A75F00E005AD988 /* YLGIFImage.m */; };
196195
4E6D718A1A75F00E005AD988 /* YLImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E6D71881A75F00E005AD988 /* YLImageView.m */; };
196+
4E6FB0551B5799B100B0A17B /* ProjectTag.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E6FB0541B5799B100B0A17B /* ProjectTag.m */; };
197197
4E72F82D1B144778001B6CE6 /* NSMutableString+Common.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E72F82C1B144778001B6CE6 /* NSMutableString+Common.m */; };
198198
4E72F82F1B159997001B6CE6 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E72F82E1B159997001B6CE6 /* [email protected] */; };
199199
4E72F8331B15B811001B6CE6 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E72F8321B15B811001B6CE6 /* [email protected] */; };
@@ -796,8 +796,6 @@
796796
3A3878361AE293D50078D5DE /* EditLabelViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditLabelViewController.m; sourceTree = "<group>"; };
797797
3A3878381AE2949E0078D5DE /* ResetLabelViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResetLabelViewController.h; sourceTree = "<group>"; };
798798
3A3878391AE2949E0078D5DE /* ResetLabelViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResetLabelViewController.m; sourceTree = "<group>"; };
799-
3A38783B1AE295090078D5DE /* ProjectTopicLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProjectTopicLabel.h; sourceTree = "<group>"; };
800-
3A38783C1AE295090078D5DE /* ProjectTopicLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProjectTopicLabel.m; sourceTree = "<group>"; };
801799
3A38783E1AE295970078D5DE /* ResetLabelCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResetLabelCell.h; sourceTree = "<group>"; };
802800
3A38783F1AE295970078D5DE /* ResetLabelCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResetLabelCell.m; sourceTree = "<group>"; };
803801
3A3878411AE296240078D5DE /* EditLabelCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditLabelCell.h; sourceTree = "<group>"; };
@@ -1055,6 +1053,8 @@
10551053
4E6D71861A75F00E005AD988 /* YLGIFImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YLGIFImage.m; sourceTree = "<group>"; };
10561054
4E6D71871A75F00E005AD988 /* YLImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YLImageView.h; sourceTree = "<group>"; };
10571055
4E6D71881A75F00E005AD988 /* YLImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YLImageView.m; sourceTree = "<group>"; };
1056+
4E6FB0531B5799B100B0A17B /* ProjectTag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProjectTag.h; sourceTree = "<group>"; };
1057+
4E6FB0541B5799B100B0A17B /* ProjectTag.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProjectTag.m; sourceTree = "<group>"; };
10581058
4E72F82B1B144778001B6CE6 /* NSMutableString+Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMutableString+Common.h"; sourceTree = "<group>"; };
10591059
4E72F82C1B144778001B6CE6 /* NSMutableString+Common.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSMutableString+Common.m"; sourceTree = "<group>"; };
10601060
4E72F82E1B159997001B6CE6 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -3419,8 +3419,8 @@
34193419
8EA6CFE719E240C40076D59C /* ProjectTopic.m */,
34203420
8EA6CFE819E240C40076D59C /* ProjectTopics.h */,
34213421
8EA6CFE919E240C40076D59C /* ProjectTopics.m */,
3422-
3A38783B1AE295090078D5DE /* ProjectTopicLabel.h */,
3423-
3A38783C1AE295090078D5DE /* ProjectTopicLabel.m */,
3422+
4E6FB0531B5799B100B0A17B /* ProjectTag.h */,
3423+
4E6FB0541B5799B100B0A17B /* ProjectTag.m */,
34243424
8EA6CFEA19E240C40076D59C /* QcTask.h */,
34253425
8EA6CFEB19E240C40076D59C /* QcTask.m */,
34263426
8EA6CFEC19E240C40076D59C /* Register.h */,
@@ -4356,6 +4356,7 @@
43564356
files = (
43574357
8EA6D13B19E240C40076D59C /* RootTabViewController.m in Sources */,
43584358
4E4ABBEA1A653027004760D9 /* WebViewController.m in Sources */,
4359+
4E6FB0551B5799B100B0A17B /* ProjectTag.m in Sources */,
43594360
4E6BA2E51A1EE6AF005FD721 /* UIImageView+AFNetworking.m in Sources */,
43604361
8EA6D1B919E240C40076D59C /* ProjectMember.m in Sources */,
43614362
4E996BCD1ABA773800C704F1 /* UserInfoViewController.m in Sources */,
@@ -4718,7 +4719,6 @@
47184719
4E38CF5F1A7A28AF005536C0 /* CodeBranchTagButton.m in Sources */,
47194720
8E64ED8119ED0CE3006E99DA /* QBAssetsCollectionViewLayout.m in Sources */,
47204721
8EA6D1C819E240C40076D59C /* UIBadgeView.m in Sources */,
4721-
3A38783D1AE295090078D5DE /* ProjectTopicLabel.m in Sources */,
47224722
8EF643BD19FF7E2900F7EEB0 /* ProjectListCell.m in Sources */,
47234723
8EF643C819FF7E2900F7EEB0 /* ToMessageCell.m in Sources */,
47244724
4E217F111A70EDC700F6DF88 /* SVWebViewControllerActivityChrome.m in Sources */,

Coding_iOS/Controllers/EditLabelViewController.m

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#import "ResetLabelViewController.h"
1313
#import "TPKeyboardAvoidingTableView.h"
1414
#import "Coding_NetAPIManager.h"
15-
#import "ProjectTopicLabel.h"
15+
#import "ProjectTag.h"
1616
#import "MBProgressHUD+Add.h"
1717

1818
#define kCellIdentifier_EditLabelHeadCell @"EditLabelHeadCell"
@@ -100,18 +100,19 @@ - (void)sendRequest
100100
[self.view beginLoading];
101101

102102
__weak typeof(self) weakSelf = self;
103-
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_WithPath:[self toLabelPath] andBlock:^(id data, NSError *error) {
103+
104+
[[Coding_NetAPIManager sharedManager] request_TagListInProject:_curProTopic.project type:ProjectTagTypeTopic andBlock:^(id data, NSError *error) {
104105
[weakSelf.view endLoading];
105106
if (data) {
106107
[_labels addObjectsFromArray:data];
107-
for (ProjectTopicLabel *lbl in _labels) {
108-
for (ProjectTopicLabel *tLbl in _curProTopic.mdLabels) {
108+
for (ProjectTag *lbl in _labels) {
109+
for (ProjectTag *tLbl in _curProTopic.mdLabels) {
109110
if ([lbl.id integerValue] == [tLbl.id integerValue]) {
110111
tLbl.name = lbl.name;
111112
break;
112113
}
113114
}
114-
for (ProjectTopicLabel *tLbl in _tempArray) {
115+
for (ProjectTag *tLbl in _tempArray) {
115116
if ([lbl.id integerValue] == [tLbl.id integerValue]) {
116117
tLbl.name = lbl.name;
117118
break;
@@ -120,17 +121,13 @@ - (void)sendRequest
120121
}
121122
[weakSelf.myTableView reloadData];
122123
}
123-
}];
124-
}
125124

126-
- (NSString *)toLabelPath
127-
{
128-
return [NSString stringWithFormat:@"api/project/%d/topic/label?withCount=true", _curProTopic.project_id.intValue];
125+
}];
129126
}
130127

131128
- (NSString *)toDelPath:(NSInteger)index
132129
{
133-
ProjectTopicLabel *ptLabel = [_labels objectAtIndex:index];
130+
ProjectTag *ptLabel = [_labels objectAtIndex:index];
134131
return [NSString stringWithFormat:@"api/project/%d/topic/label/%lld", _curProTopic.project_id.intValue, ptLabel.id.longLongValue];
135132
}
136133

@@ -174,20 +171,17 @@ - (void)addBtnClick:(UIButton *)sender
174171
[_mCurrentTextField resignFirstResponder];
175172
if (_tempLabel.length > 0) {
176173
__weak typeof(self) weakSelf = self;
177-
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Add_WithPath:[self toLabelPath] withParams:@{@"name" : [_tempLabel aliasedString], @"color" : @"#d8f3e4"} andBlock:^(id data, NSError *error) {
178-
if (!error) {
179-
ProjectTopicLabel *ptLabel = [[ProjectTopicLabel alloc] init];
180-
ptLabel.name = _tempLabel;
181-
ptLabel.id = data;
182-
ptLabel.owner_id = _curProTopic.project_id;
183-
ptLabel.color = @"#d8f3e4";
184-
[weakSelf.labels addObject:ptLabel];
174+
ProjectTag *curTag = [ProjectTag tagWithName:_tempLabel];
175+
[[Coding_NetAPIManager sharedManager] request_AddTag:curTag toProject:_curProTopic.project andBlock:^(id data, NSError *error) {
176+
if (data) {
177+
curTag.id = data;
178+
[weakSelf.labels addObject:curTag];
185179
[weakSelf.myTableView reloadData];
186180
_tempLabel = @"";
187181
weakSelf.mCurrentTextField.text = @"";
188182
[weakSelf showHudTipStr:@"添加标签成功^^"];
189183
sender.enabled = FALSE;
190-
}
184+
}
191185
}];
192186
}
193187
}
@@ -231,13 +225,13 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
231225
return cell;
232226
}
233227

234-
ProjectTopicLabel *ptLabel = _labels[indexPath.row];
228+
ProjectTag *ptLabel = _labels[indexPath.row];
235229

236230
EditLabelCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier_EditLabelCell forIndexPath:indexPath];
237231
cell.nameLbl.text = ptLabel.name;
238232

239233
BOOL selected = FALSE;
240-
for (ProjectTopicLabel *lbl in _curProTopic.mdLabels) {
234+
for (ProjectTag *lbl in _curProTopic.mdLabels) {
241235
if ([lbl.id integerValue] == [ptLabel.id integerValue]) {
242236
selected = TRUE;
243237
break;
@@ -279,11 +273,11 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
279273
EditLabelCell *cell = (EditLabelCell *)[tableView cellForRowAtIndexPath:indexPath];
280274
cell.selectBtn.selected = !cell.selectBtn.selected;
281275

282-
ProjectTopicLabel *lbl = _labels[indexPath.row];
276+
ProjectTag *lbl = _labels[indexPath.row];
283277

284278
if (cell.selectBtn.selected) {
285279
BOOL add = TRUE;
286-
for (ProjectTopicLabel *tempLbl in _tempArray) {
280+
for (ProjectTag *tempLbl in _tempArray) {
287281
if ([tempLbl.id integerValue] == [lbl.id integerValue]) {
288282
add = FALSE;
289283
break;
@@ -308,7 +302,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
308302
//}
309303
}
310304
} else {
311-
for (ProjectTopicLabel *tempLbl in _tempArray) {
305+
for (ProjectTag *tempLbl in _tempArray) {
312306
if ([tempLbl.id integerValue] == [lbl.id integerValue]) {
313307
// if (_isSaveChange) {
314308
// __weak typeof(self) weakSelf = self;
@@ -384,7 +378,7 @@ - (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerRightUtilityBut
384378
[self renameBtnClick:indexPath.row];
385379
} else {
386380
__weak typeof(self) weakSelf = self;
387-
ProjectTopicLabel *ptLabel = [_labels objectAtIndex:indexPath.row];
381+
ProjectTag *ptLabel = [_labels objectAtIndex:indexPath.row];
388382
NSString *tip = [NSString stringWithFormat:@"确定要删除标签:%@", ptLabel.name];
389383
UIActionSheet *actionSheet = [UIActionSheet bk_actionSheetCustomWithTitle:tip buttonTitles:nil destructiveTitle:@"确认删除" cancelTitle:@"取消" andDidDismissBlock:^(UIActionSheet *sheet, NSInteger index) {
390384
if (index == 0) {
@@ -406,17 +400,17 @@ - (void)renameBtnClick:(NSInteger)index
406400
- (void)deleteBtnClick:(NSInteger)index
407401
{
408402
__weak typeof(self) weakSelf = self;
409-
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Del_WithPath:[self toDelPath:index] andBlock:^(id data, NSError *error) {
410-
if (!error) {
403+
[[Coding_NetAPIManager sharedManager] request_DeleteTag:_labels[index] inProject:_curProTopic.project andBlock:^(id data, NSError *error) {
404+
if (data) {
411405
[weakSelf deleteLabel:index];
412406
}
413407
}];
414408
}
415409

416410
- (void)deleteLabel:(NSInteger)index
417411
{
418-
ProjectTopicLabel *lbl = _labels[index];
419-
for (ProjectTopicLabel *tempLbl in _tempArray) {
412+
ProjectTag *lbl = _labels[index];
413+
for (ProjectTag *tempLbl in _tempArray) {
420414
if ([tempLbl.id integerValue] == [lbl.id integerValue]) {
421415
[_tempArray removeObject:tempLbl];
422416
self.navigationItem.rightBarButtonItem.enabled = YES;
@@ -448,7 +442,7 @@ - (void)textFieldDidChange:(UITextField *)textField
448442
_tempLabel = [textField.text trimWhitespace];
449443
BOOL enabled = _tempLabel.length > 0 ? TRUE : FALSE;
450444
if (enabled) {
451-
for (ProjectTopicLabel *lbl in _labels) {
445+
for (ProjectTag *lbl in _labels) {
452446
if ([lbl.name isEqualToString:_tempLabel]) {
453447
enabled = FALSE;
454448
break;

Coding_iOS/Controllers/EditTopicViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#import "WebContentManager.h"
1414
#import "EditLabelViewController.h"
1515
#import "TopicPreviewCell.h"
16-
#import "ProjectTopicLabel.h"
16+
#import "ProjectTag.h"
1717
#import "ProjectTopicLabelView.h"
1818

1919
@interface EditTopicViewController ()<UIWebViewDelegate, UITableViewDataSource, UITableViewDelegate>

Coding_iOS/Controllers/ResetLabelViewController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#import "BaseViewController.h"
1010

1111
@class ProjectTopic;
12-
@class ProjectTopicLabel;
12+
@class ProjectTag;
1313
@interface ResetLabelViewController : BaseViewController
1414

15-
@property (weak, nonatomic) ProjectTopicLabel *ptLabel;
15+
@property (weak, nonatomic) ProjectTag *ptLabel;
1616
@property (weak, nonatomic) ProjectTopic *curProTopic;
1717

1818
@end

Coding_iOS/Controllers/ResetLabelViewController.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import "ResetLabelCell.h"
1111
#import "TPKeyboardAvoidingTableView.h"
1212
#import "Coding_NetAPIManager.h"
13-
#import "ProjectTopicLabel.h"
13+
#import "ProjectTag.h"
1414

1515
#define kCellIdentifier_ResetLabelCell @"ResetLabelCell"
1616

@@ -79,8 +79,9 @@ - (void)okBtnClick
7979
{
8080
if (_tempStr.length > 0) {
8181
__weak typeof(self) weakSelf = self;
82-
[[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Modify_WithPath:[self toModifyPath] withParams:@{@"name" : _tempStr, @"color" : @"#d8f3e4", @"label_id" : _ptLabel.id} andBlock:^(id data, NSError *error) {
83-
if (!error) {
82+
_ptLabel.name = _tempStr;
83+
[[Coding_NetAPIManager sharedManager] request_ModifyTag:_ptLabel inProject:_curProTopic.project andBlock:^(id data, NSError *error) {
84+
if (data) {
8485
[weakSelf.navigationController popViewControllerAnimated:YES];
8586
}
8687
}];
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
//
2-
// ProjectTopicLabel.h
2+
// ProjectTag.h
33
// Coding_iOS
44
//
5-
// Created by 周文敏 on 15/4/18.
5+
// Created by Ease on 15/7/16.
66
// Copyright (c) 2015年 Coding. All rights reserved.
77
//
88

99
#import <Foundation/Foundation.h>
1010

11-
@interface ProjectTopicLabel : NSObject
11+
typedef NS_ENUM(NSUInteger, ProjectTagType){
12+
ProjectTagTypeTopic = 0,
13+
ProjectTagTypeTask,
14+
};
1215

13-
@property (readwrite, nonatomic, strong) NSNumber *id, *owner_id, *count, *type;
16+
@interface ProjectTag : NSObject
17+
18+
@property (readwrite, nonatomic, strong) NSNumber *id, *owner_id, *count;
1419
@property (readwrite, nonatomic, strong) NSString *name, *color;
1520

21+
+ (instancetype)tagWithName:(NSString *)name;
22+
1623
@end

Coding_iOS/Models/ProjectTag.m

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// ProjectTag.m
3+
// Coding_iOS
4+
//
5+
// Created by Ease on 15/7/16.
6+
// Copyright (c) 2015年 Coding. All rights reserved.
7+
//
8+
9+
#import "ProjectTag.h"
10+
#import "Login.h"
11+
12+
@implementation ProjectTag
13+
14+
- (instancetype)init
15+
{
16+
self = [super init];
17+
if (self) {
18+
_id = @(0);
19+
_count = @(0);
20+
_owner_id = [Login curLoginUser].id;
21+
_name = @"";
22+
_color = [NSString stringWithFormat:@"#%@", [[UIColor randomColor] hexStringFromColor]];
23+
}
24+
return self;
25+
}
26+
27+
+ (instancetype)tagWithName:(NSString *)name{
28+
ProjectTag *tag = [[self alloc] init];
29+
tag.name = name;
30+
return tag;
31+
}
32+
33+
@end

Coding_iOS/Models/ProjectTopic.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "ProjectTopic.h"
1010
#import "Login.h"
11-
#import "ProjectTopicLabel.h"
11+
#import "ProjectTag.h"
1212

1313
@implementation ProjectTopic
1414

@@ -17,7 +17,7 @@ - (instancetype)init
1717
self = [super init];
1818
if (self) {
1919
_propertyArrayMap = [NSDictionary dictionaryWithObjectsAndKeys:
20-
@"ProjectTopicLabel", @"labels", nil];
20+
@"ProjectTag", @"labels", nil];
2121

2222
_page = [NSNumber numberWithInteger:1];
2323
_pageSize = [NSNumber numberWithInteger:20];
@@ -73,7 +73,7 @@ - (NSString *)toTopicPath
7373
- (NSDictionary *)toEditParams
7474
{
7575
NSMutableArray *tempAry = [NSMutableArray arrayWithCapacity:_mdLabels.count];
76-
for (ProjectTopicLabel *lbl in _mdLabels) {
76+
for (ProjectTag *lbl in _mdLabels) {
7777
[tempAry addObject:lbl.id];
7878
}
7979
return @{@"title" : [_mdTitle aliasedString],
@@ -89,7 +89,7 @@ - (NSString *)toLabelPath
8989
- (NSDictionary *)toLabelParams
9090
{
9191
NSMutableArray *tempAry = [NSMutableArray arrayWithCapacity:_mdLabels.count];
92-
for (ProjectTopicLabel *lbl in _mdLabels) {
92+
for (ProjectTag *lbl in _mdLabels) {
9393
[tempAry addObject:lbl.id];
9494
}
9595
return @{@"label_id" : tempAry};
@@ -103,7 +103,7 @@ - (NSString *)toAddTopicPath
103103
- (NSDictionary *)toAddTopicParams
104104
{
105105
NSMutableArray *tempAry = [NSMutableArray arrayWithCapacity:_mdLabels.count];
106-
for (ProjectTopicLabel *lbl in _mdLabels) {
106+
for (ProjectTag *lbl in _mdLabels) {
107107
[tempAry addObject:lbl.id];
108108
}
109109
return @{@"title" : [_mdTitle aliasedString],

Coding_iOS/Models/ProjectTopicLabel.m

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)