Commit fac5c611dbb25be3e103f04afafd3419f2fab8e8
1 parent
7600abed
视频返回跳转bug修改(搜索视频相关视频无法跳转跳转),返回不正确
Showing
1 changed file
with
2 additions
and
13 deletions
CNLiveScioLive/Pages/Home/新闻详情/OldController/OldVideoDetailViewController.m
| ... | ... | @@ -22,18 +22,7 @@ |
| 22 | 22 | @end |
| 23 | 23 | @implementation OldVideoDetailViewController |
| 24 | 24 | - (void)Pop:(id)sender{ |
| 25 | -// [self.videoController stop]; | |
| 26 | - for(UIViewController *controller in self.navigationController.viewControllers) { | |
| 27 | - if([controller isKindOfClass:[CNLiveMyCollectionViewController class]]) { | |
| 28 | - [self.navigationController popViewControllerAnimated:YES]; | |
| 29 | - return; | |
| 30 | - } | |
| 31 | - if ([controller isKindOfClass:[SearchResultViewController class]]) { | |
| 32 | - [self.navigationController popViewControllerAnimated:YES]; | |
| 33 | - return; | |
| 34 | - } | |
| 35 | - } | |
| 36 | - [self.navigationController popToRootViewControllerAnimated:YES]; | |
| 25 | + [self.navigationController popViewControllerAnimated:YES]; | |
| 37 | 26 | } |
| 38 | 27 | - (id)initWithDictionary:(NSDictionary *)dictionary{ |
| 39 | 28 | if (self = [super init]) { |
| ... | ... | @@ -504,7 +493,7 @@ |
| 504 | 493 | vc.title = _dic[@"cmsColumnName"]; |
| 505 | 494 | vc.hidesBottomBarWhenPushed = YES; |
| 506 | 495 | NSMutableArray *controllersAry = [NSMutableArray arrayWithArray:self.navigationController.viewControllers]; |
| 507 | - [controllersAry replaceObjectAtIndex:1 withObject:vc]; | |
| 496 | + [controllersAry replaceObjectAtIndex:self.navigationController.viewControllers.count-1 withObject:vc]; | |
| 508 | 497 | [self.navigationController setViewControllers:controllersAry animated:YES]; |
| 509 | 498 | |
| 510 | 499 | // [self.navigationController pushViewController:vc animated:YES]; | ... | ... |