Commit 1cbbfdbdc25a4336e35cfea53d8c009cc136ff78
1 parent
8ca851fa
0.7.6
Showing
2 changed files
with
14 additions
and
1 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/SearchView/ViewController/CNWitnessSearchViewController.m
| ... | ... | @@ -50,6 +50,19 @@ static NSString *const CNWitnessSearchHeaderViewID = @"CNWitnessSearchHeaderView |
| 50 | 50 | } |
| 51 | 51 | - (void)viewDidLoad { |
| 52 | 52 | [super viewDidLoad]; |
| 53 | + NSArray *navArray = self.navigationController.viewControllers; | |
| 54 | + NSMutableArray *temArray = [NSMutableArray arrayWithArray:navArray]; | |
| 55 | + for (int i = 0; i < navArray.count; i ++) { | |
| 56 | + UIViewController *vc = navArray[i]; | |
| 57 | + if (vc != self) { | |
| 58 | + //找到上一个聊天界面释放掉 | |
| 59 | + if ([vc isKindOfClass:[self class]]) { | |
| 60 | + [temArray removeObject:vc]; | |
| 61 | + break; | |
| 62 | + } | |
| 63 | + } | |
| 64 | + } | |
| 65 | + self.navigationController.viewControllers = temArray; | |
| 53 | 66 | self.view.backgroundColor = UIColorHex(#E6E6E6); |
| 54 | 67 | self.isShowAll = NO; |
| 55 | 68 | self.histories = [CNWitnessSearchPresent readSearchHistories]; | ... | ... |