title: Cannot dismiss the Search view
body: <p>I have a parent class with tableview and searchbar over it which is a subclass of tableview controller. Delegates for the searchBar and searchdisplaycontroller are set in a seperate class inherited from UISearchdisplaycontroller. The datasource and delegates for tableview and searchbar are handled in this class seperately. The classes are under ARC.</p>
  
  <p>Hence, When a user taps on search, the control transfers from FilesListController (parent)class to this class. Now, When a user taps on cancel button, the searchbar delegate set in this class i.e. </p>
  
  <pre><code>- (void)searchBarCancelButtonClicked:(UISearchBar *) searchBar  
  </code></pre>
  
  <p>is CALLED but DOESN'T serve the purpose of dismissing the full screen searchtableview and return to the parentviewcontroller. However, if I don't write this delegate in the search class, it works properly. I have set the searchbar delegates in xib and on calling:</p>
  
  <pre><code>- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
  </code></pre>
  
  <p>like this:</p>
  
  <pre><code>self.searchResultsTableView.delegate = self;
  self.searchResultsTableView.dataSource = self;
  [parentFileViewController.searchDisplayController setDelegate:self];
  </code></pre>
  
  <p>Where am I going wrong? Thanks in advance.</p>