title: How to show rows in tableview according to textfield's search result
body: <p>initially I am able to show all rows in tableview.. now i need to show only searched textfield rows...</p>
  <p>here the textfield and search button is outside the tableview.. now <strong>if i add date in textfield  and tap on search button then i need to show only the date contain row only in tableview how to do that</strong></p>
  <p><strong>code to show all rows in tableview:</strong> here in <code>postedServicesCall</code> param's <code>from_date</code> is nil then i need to show all rows .. which i am able to do with below code.. now how to show if there is a value in <code>from_date</code> then only the date contained rows in tableview</p>
  <pre><code> class PageContentViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
  
  @IBOutlet weak var fromDateTextField: MDCTextField!
  private var servicesArray = [ServicesModel]()
  
  override func viewDidLoad() {
  
      postedServicesCall()
      DispatchQueue.main.async {
          self.servicesTableView.reloadData()
      }
  }
  
  func postedServicesCall(){
      
      let param = [&quot;from_date&quot; : &quot;&quot;]
      APIReqeustManager.sharedInstance.serviceCall(param: param as [String : Any], method: .post, loaderNeed: false, loadingButton: nil, needViewHideShowAfterLoading: nil, vc: self, url: CommonUrl.posted_requests, isTokenNeeded: true, isErrorAlertNeeded: true, isSuccessAlertNeeded: false, actionErrorOrSuccess: nil, fromLoginPageCallBack: nil) { [weak self] (resp) in
  
          self?.postedServicesData = Posted_services_base_model(dictionary: resp.dict as NSDictionary? ?? NSDictionary())
       
          }
  }
  
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return servicesArray.count
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: &quot;ServicesTableViewCell&quot;, for: indexPath) as! ServicesTableViewCell
      cell.serviceTitle.text = servicesArray[indexPath.row].title
      cell.dateLabel.text = servicesArray[indexPath.row].date
      cell.locationLabel.text = servicesArray[indexPath.row].location
      
      return cell
  }
  
  //if i add date in textfield and tap on search.. then with the date how many rows are there should be display in tableview
  @IBAction func searchtBtn(_ sender: TransitionButton) {
  }
  </code></pre>
  <p>if i search date in textfield then i need to show the date related rows in tableview.. how?</p>
  <p>please do help with code</p>