File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,20 @@ - (BOOL)userIsQuering:(User *)curUser{
127
127
}
128
128
#pragma mark Table M
129
129
- (CGFloat)tableView : (UITableView *)tableView heightForHeaderInSection : (NSInteger )section {
130
- return 44 ;
130
+ return _type == AddUserTypeFollow? 0 : 44 ;
131
131
}
132
132
133
133
- (UIView *)tableView : (UITableView *)tableView viewForHeaderInSection : (NSInteger )section {
134
- NSInteger leftNum = _curProject.max_member .integerValue - _addedArray.count ;
135
- UILabel *label = [UILabel labelWithSystemFontSize: 13 textColorHexString: leftNum > 0 ? @" 0x999999" : @" 0xF34A4A" ];
136
- label.backgroundColor = self.view .backgroundColor ;
137
- label.textAlignment = NSTextAlignmentCenter;
138
- label.text = leftNum > 0 ? [NSString stringWithFormat: @" 你还可以添加 %lu 个项目成员" , leftNum]: @" 已到达到成员最大数,不能再继续选择成员!" ;
139
- return label;
134
+ if (_type == AddUserTypeFollow) {
135
+ return [UIView new ];
136
+ }else {
137
+ NSInteger leftNum = _curProject.max_member .integerValue - _addedArray.count ;
138
+ UILabel *label = [UILabel labelWithSystemFontSize: 13 textColorHexString: leftNum > 0 ? @" 0x999999" : @" 0xF34A4A" ];
139
+ label.backgroundColor = self.view .backgroundColor ;
140
+ label.textAlignment = NSTextAlignmentCenter;
141
+ label.text = leftNum > 0 ? [NSString stringWithFormat: @" 你还可以添加 %lu 个项目成员" , leftNum]: @" 已到达到成员最大数,不能再继续选择成员!" ;
142
+ return label;
143
+ }
140
144
}
141
145
142
146
- (NSInteger )tableView : (UITableView *)tableView numberOfRowsInSection : (NSInteger )section {
Original file line number Diff line number Diff line change @@ -180,13 +180,13 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
180
180
cell.unreadCount = [_notificationDict objectForKey: kUnReadKey_notification_System ];
181
181
break ;
182
182
}
183
- [tableView addLineforPlainCell: cell forRowAtIndexPath: indexPath withLeftSpace: 75 ];
183
+ [tableView addLineforPlainCell: cell forRowAtIndexPath: indexPath withLeftSpace: 75 hasSectionLine: NO ];
184
184
return cell;
185
185
}else {
186
186
ConversationCell *cell = [tableView dequeueReusableCellWithIdentifier: kCellIdentifier_Conversation forIndexPath: indexPath];
187
187
PrivateMessage *msg = [_myPriMsgs.list objectAtIndex: indexPath.row-3 ];
188
188
cell.curPriMsg = msg;
189
- [tableView addLineforPlainCell: cell forRowAtIndexPath: indexPath withLeftSpace: 75 ];
189
+ [tableView addLineforPlainCell: cell forRowAtIndexPath: indexPath withLeftSpace: 75 hasSectionLine: NO ];
190
190
return cell;
191
191
}
192
192
}
You can’t perform that action at this time.
0 commit comments