title: UISearchBar textfield not editable after back from details view
body: <p>UISearchBar textfield not editable after back from details view, but the select option can be visible also cross button working.  <a href="https://i.stack.imgur.com/W1gql.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W1gql.png" alt="enter image description here"></a></p>
  
  <p>Using the following code,</p>
  
  <pre><code>@property (weak, nonatomic) IBOutlet UISearchBar *searchBar;
  
  - (void) viewWillAppear:(BOOL)animated {
      [super viewWillAppear:YES];
      [self performSelector:@selector(showKeyboard) withObject:nil afterDelay:0.1];
  }
  - (void)showKeyboard {
      [self.searchBar becomeFirstResponder];
  }
  </code></pre>
  
  <p>Which is working first time but when back it's not working. But the breakpoint on showKeyboard method is working. </p>
  
  <p>This search is used in two different section and code is like this -</p>
  
  <pre><code>UINavigationController *navController =self.navigationController;
      TPTabBarController *tabbar = nil;
  
      if([navController.presentingViewController isKindOfClass:[TPTabBarController class]]){
          tabbar = (TPTabBarController *)navController.presentingViewController;
      }else{
          NSLog(@"Failed to get tabbar in TPBookViewController. It is nil.");
      }
  
      if(tabbar != nil &amp;&amp; tabbar.searchNavigationController != nil){
          if(tabbar.searchNavigationController.viewControllers.count == 2){
              //current view is SearchResultViewController
              SearchResultViewController *searchResultViewController = (SearchResultViewController*)tabbar.searchNavigationController.viewControllers[1];
              [searchResultViewController reloadDataAndLocateToPage:self.currentPage manual:_currentManual];
          }
          [self presentViewController:tabbar.searchNavigationController animated:YES completion:nil];
      }
  </code></pre>
  
  <p>In one section is working but in another view controller it's not working</p>