title: Added Tableview data is not coming, why in swift?
body: <p>I am sending data to tableview from 3rd view controller to first view controller, now for the first time data is adding to tableview but if go from 1st view controller to other view controller and i come back to first view controller then the added data in table view is coming why?</p>
  
  <p><strong>in 3rd view controller sending data to 1st view controller table view like below:</strong></p>
  
  <pre><code>var viewController: UIViewController?
  
  @IBAction func confirmBtn(_ sender: Any) {
     for controller in navigationController?.viewControllers ?? [] {
          if let listController =  controller as? ProfileViewController {
              guard let string = addressLabel.text else { return }//"\(sublocalityName ?? "") \(zipName ?? "") \(localityName ?? "")"
              listController.addressArray.append(string)
              navigationController?.popToViewController(controller, animated: true)
              return
          }
      }
  }
  </code></pre>
  
  <p><strong>in 1st view controller adding data to tableview like below:</strong></p>
  
  <pre><code> @IBOutlet weak var addeditTableview: UITableView!
  var addressArray = [String]()
  
   override func viewWillAppear(_ animated: Bool) {
      self.navigationController?.navigationBar.isHidden=true
      addeditTableview.reloadData()
  }
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      return addressArray.count
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
     // let cell: EditAddressTableViewCell = addeditTableview.dequeueReusableCell(withIdentifier: "EditAddressTableViewCell") as! EditAddressTableViewCell
  
      let cell = tableView.dequeueReusableCell(withIdentifier: "EditAddressTableViewCell", for: indexPath) as! EditAddressTableViewCell
  
      cell.editButton.addTarget(self, action: #selector(editbuttonClicked(sender:)), for: .touchUpInside)
         cell.nameHeader.text = "Other"
          cell.addressLabel.text = addressArray[indexPath.row]//"\(city) \(pincode) \(locality)"
  
      return cell
  }
  </code></pre>
  
  <p>after added table view if i go to other view controller and if i come back to table view thae added value is not coming, why?
  please do help with code.</p>