Skip to content

Commit d9fba40

Browse files
committed
*--+ bug
1 parent 0074f12 commit d9fba40

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ - (void)refreshActivityMore:(BOOL)loadMore{
135135
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
136136
NSInteger section = 0;
137137
if (_myProject.is_public) {
138-
section = _myProject.is_public.boolValue? 3: (1 *_myProActs.listGroups.count);
138+
section = _myProject.is_public.boolValue? 3: (1 +_myProActs.listGroups.count);
139139
}
140140
return section;
141141
}
@@ -176,7 +176,7 @@ - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger
176176
UIView *headerView = nil;
177177
if (_myProject.is_public && !_myProject.is_public.boolValue
178178
&& section > 0) {
179-
ListGroupItem *item = [_myProActs.listGroups objectAtIndex:section];
179+
ListGroupItem *item = [_myProActs.listGroups objectAtIndex:section -1];
180180
UIView *dateStrView = [tableView getHeaderViewWithStr:[item.date string_yyyy_MM_dd_EEE] color:[UIColor colorWithHexString:@"0xedefee"] andBlock:nil];
181181
headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreen_Width, [self tableView:tableView heightForHeaderInSection:section])];
182182
headerView.backgroundColor = self.view.backgroundColor;

Coding_iOS/Models/ProjectActivities.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ - (void)refreshListGroupWithArray:(NSArray *)responseA isAdd:(BOOL)isAdd{
146146
}
147147
}
148148
}
149-
DebugLog(@"\n_listGroups:\n%@", _listGroups);
150149
}
151150
@end
152151
@implementation ProjectActivity

0 commit comments

Comments
 (0)