Commit 1cbbfdbdc25a4336e35cfea53d8c009cc136ff78

Authored by yanglingyu
1 parent 8ca851fa

0.7.6

CNLiveVideoClassifyKit.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveVideoClassifyKit' 10 s.name = 'CNLiveVideoClassifyKit'
11 - s.version = '0.7.5' 11 + s.version = '0.7.6'
12 s.summary = '视讯头部一二级菜单组件' 12 s.summary = '视讯头部一二级菜单组件'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveVideoClassifyKit/Classes/SearchView/ViewController/CNWitnessSearchViewController.m
@@ -50,6 +50,19 @@ static NSString *const CNWitnessSearchHeaderViewID = @"CNWitnessSearchHeaderView @@ -50,6 +50,19 @@ static NSString *const CNWitnessSearchHeaderViewID = @"CNWitnessSearchHeaderView
50 } 50 }
51 - (void)viewDidLoad { 51 - (void)viewDidLoad {
52 [super viewDidLoad]; 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 self.view.backgroundColor = UIColorHex(#E6E6E6); 66 self.view.backgroundColor = UIColorHex(#E6E6E6);
54 self.isShowAll = NO; 67 self.isShowAll = NO;
55 self.histories = [CNWitnessSearchPresent readSearchHistories]; 68 self.histories = [CNWitnessSearchPresent readSearchHistories];