Skip to content

Commit 7de88ad

Browse files
committed
私有的讨论就换成 wiki,公开讨论保留
1 parent 347a76d commit 7de88ad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
207207
if (_myProject.is_public.boolValue) {
208208
[cell setImageStr:@"project_item_member" andTitle:@"成员"];
209209
}else{
210-
[cell setImageStr:@"project_item_topic" andTitle:@"讨论"];
211-
// [cell setImageStr:@"project_item_wiki" andTitle:@"Wiki"];
210+
// [cell setImageStr:@"project_item_topic" andTitle:@"讨论"];
211+
[cell setImageStr:@"project_item_wiki" andTitle:@"Wiki"];
212212
}
213213
break;
214214
case 4:
@@ -301,16 +301,16 @@ - (void)goToIndex:(NSInteger)index{
301301
}
302302
}];
303303
}
304-
// if (index == 3 && _myProject.is_public && !_myProject.is_public.boolValue) {
305-
// WikiViewController *vc = [WikiViewController new];
306-
// vc.myProject = self.myProject;
307-
// [self.navigationController pushViewController:vc animated:YES];
308-
// }else{
304+
if (index == 3 && _myProject.is_public && !_myProject.is_public.boolValue) {
305+
WikiViewController *vc = [WikiViewController new];
306+
vc.myProject = self.myProject;
307+
[self.navigationController pushViewController:vc animated:YES];
308+
}else{
309309
ProjectViewController *vc = [[ProjectViewController alloc] init];
310310
vc.myProject = self.myProject;
311311
vc.curIndex = index;
312312
[self.navigationController pushViewController:vc animated:YES];
313-
// }
313+
}
314314
}
315315
- (void)gotoPro:(Project *)project{
316316
NProjectViewController *vc = [[NProjectViewController alloc] init];

0 commit comments

Comments
 (0)