title: Has no segue with identifier 'searchSegue' through xib file's class
body: <p>I am using a segue(<code>searchSegue</code>) to connect <strong>my search screen</strong> (<code>SearchViewController</code>) to <strong>the search result page</strong> (<code>PhotoStreamViewController</code>). </p>
  
  <p><code>SearchViewController</code> is a collection view. Every collection view cell has a design in Xib file. (Xib file's class is <code>SearchCategoryRowCell</code>)</p>
  
  <p>Currently, when I triggered <code>searchSegue</code> through <code>SearchViewController</code> it works fine. But whenever I trigger the same segue through <code>SearchCategoryRowCell</code>, I am getting <code>Has no segue with identifier 'searchSegue'</code></p>
  
  <p><strong>SearchViewController.swift</strong></p>
  
  <pre><code> class SearchViewController: UIViewController,UISearchBarDelegate,UICollectionViewDataSource, UICollectionViewDelegateFlowLayout{
      ...
     func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
          searchRedirect(keyword: searchBar.text!)
      }
  
  
      func searchRedirect(keyword:String) {
          performSegue(withIdentifier: "searchSegue", sender:self)
          PhotoStreamViewController.searchString = keyword
          navigationController?.setNavigationBarHidden(false, animated: true)
      }
      ...
    }
  </code></pre>
  
  <p><strong>SearchCategoryRowCell.swift</strong></p>
  
  <pre><code>class SearchCategoryRowCell: UICollectionViewCell {
      //the method below is triggered by a click action  
      @objc func searchRedirection(_ sender:UIButton) {
          print("we")
          print(subCategoryArray[sender.tag].name)
  
          let searchViewcontroller = SearchViewController(nibName: "SearchViewController", bundle: nil)
          searchViewcontroller.searchRedirect(keyword: "otherSearchKeyword")
  
      }
     ...
  }
  </code></pre>