Commit b25f30611b0300ee2c3626d9406f2da4cf736564
1 parent
b417921c
视频连续跳转只保留一个页面
Showing
1 changed file
with
5 additions
and
1 deletions
CNLiveScioLive/Pages/Home/新闻详情/OldController/OldVideoDetailViewController.m
| ... | ... | @@ -553,7 +553,11 @@ |
| 553 | 553 | OldVideoDetailViewController *vc = [[OldVideoDetailViewController alloc] initWithDictionary:_dic]; |
| 554 | 554 | vc.title = _dic[@"cmsColumnName"]; |
| 555 | 555 | vc.hidesBottomBarWhenPushed = YES; |
| 556 | - [self.navigationController pushViewController:vc animated:YES]; | |
| 556 | + NSMutableArray *controllersAry = [NSMutableArray arrayWithArray:self.navigationController.viewControllers]; | |
| 557 | + [controllersAry replaceObjectAtIndex:1 withObject:vc]; | |
| 558 | + [self.navigationController setViewControllers:controllersAry animated:YES]; | |
| 559 | + | |
| 560 | +// [self.navigationController pushViewController:vc animated:YES]; | |
| 557 | 561 | } else if ([@"article" isEqualToString:_dic[@"type"]]) { |
| 558 | 562 | OldArticleDetailViewController *vc = [[OldArticleDetailViewController alloc] initWithDictionary:_dic]; |
| 559 | 563 | vc.title = _dic[@"cmsColumnName"]; | ... | ... |