heavyrain2012 4 years ago
parent
commit
8d8cc7d514

+ 1 - 1
wfuikit/WFChatUIKit/AddFriend/ViewController/WFCUAddFriendViewController.m

@@ -26,7 +26,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     [self initSearchUIAndData];
-    self.extendedLayoutIncludesOpaqueBars = true;
+    self.extendedLayoutIncludesOpaqueBars = YES;
 }
 
 - (void)viewWillDisappear:(BOOL)animated {

+ 1 - 1
wfuikit/WFChatUIKit/Channel/WFCUSearchChannelViewController.m

@@ -26,7 +26,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     [self initSearchUIAndData];
-    self.extendedLayoutIncludesOpaqueBars = true;
+    self.extendedLayoutIncludesOpaqueBars = YES;
 }
 
 - (void)viewWillDisappear:(BOOL)animated {

+ 3 - 2
wfuikit/WFChatUIKit/Contacts/ViewController/WFCUContactListViewController.m

@@ -132,8 +132,7 @@ static NSMutableDictionary *hanziStringDict = nil;
         self.tableView.tableHeaderView = _searchController.searchBar;
     }
     self.definesPresentationContext = YES;
-    self.extendedLayoutIncludesOpaqueBars = true;
-    
+
     self.tableView.sectionIndexColor = [UIColor colorWithHexString:@"0x4e4e4e"];
     [self.view addSubview:self.tableView];
     
@@ -670,10 +669,12 @@ static NSMutableDictionary *hanziStringDict = nil;
 #pragma mark - UISearchControllerDelegate
 - (void)didPresentSearchController:(UISearchController *)searchController {
     self.tabBarController.tabBar.hidden = YES;
+    self.extendedLayoutIncludesOpaqueBars = YES;
 }
 
 - (void)willDismissSearchController:(UISearchController *)searchController {
     self.tabBarController.tabBar.hidden = NO;
+    self.extendedLayoutIncludesOpaqueBars = NO;
 }
 
 - (void)didDismissSearchController:(UISearchController *)searchController {

+ 1 - 1
wfuikit/WFChatUIKit/ConversationList/ViewController/WFCUConversationSearchTableViewController.m

@@ -76,7 +76,7 @@
     self.messages = [[NSMutableArray alloc] init];
     [self initSearchUIAndTableView];
 
-    self.extendedLayoutIncludesOpaqueBars = true;
+    self.extendedLayoutIncludesOpaqueBars = YES;
     [self.searchController.searchBar setText:self.keyword];
     self.searchController.active = YES;
 }

+ 3 - 2
wfuikit/WFChatUIKit/ConversationList/ViewController/WFCUConversationTableViewController.m

@@ -244,7 +244,7 @@
     self.conversations = [[NSMutableArray alloc] init];
     
     [self initSearchUIAndTableView];
-    self.extendedLayoutIncludesOpaqueBars = true;
+    self.definesPresentationContext = YES;
     self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"bar_plus"] style:UIBarButtonItemStyleDone target:self action:@selector(onRightBarBtn:)];
     
     
@@ -950,11 +950,12 @@
     self.isSearchConversationListExpansion = NO;
     self.isSearchGroupListExpansion = NO;
     self.tabBarController.tabBar.hidden = YES;
+    self.extendedLayoutIncludesOpaqueBars = YES;
 }
 
 - (void)willDismissSearchController:(UISearchController *)searchController {
     self.tabBarController.tabBar.hidden = NO;
-    
+    self.extendedLayoutIncludesOpaqueBars = NO;
 }
 
 -(void)updateSearchResultsForSearchController:(UISearchController *)searchController {

+ 1 - 1
wfuikit/WFChatUIKit/ForwardMessage/WFCUForwardViewController.m

@@ -45,7 +45,7 @@
 
     self.conversations = [[[WFCCIMService sharedWFCIMService] getConversationInfos:@[@(Single_Type), @(Group_Type)] lines:@[@(0)]] mutableCopy];
 
-    self.extendedLayoutIncludesOpaqueBars = true;
+    self.extendedLayoutIncludesOpaqueBars = YES;
     
     self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
     self.searchController.searchResultsUpdater = self;