title: How can I update the numberOfRowsInSection and how do I show all added values in this tableView?
body: <p>I am trying to send values from one view controller - <code>NewZoomAddressViewController</code> to another one - <code>Add_EditAddressViewController</code>. I am sending the values to an array in the second view controller (<code>addressArray</code>).</p>
  
  <p>Here is the first view controller:</p>
  
  <pre><code>class NewZoomAddressViewController: UIViewController {
  
  @IBOutlet weak var mapView: MKMapView!
  @IBOutlet weak var addressLabel: UILabel!
  var addressArray = [String]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
      print("in Zoom map VC")
      mapView.delegate = self
      addressLabel.text = "\(self.sublocalityName!) \(localityName!) \(self.zipName!)"
  
  }
  @IBAction func confirmBtn(_ sender: Any) {
      let viewController = storyboard?.instantiateViewController(withIdentifier: "Add_EditAddressViewController") as! Add_EditAddressViewController
      addressArray.append("\(sublocalityName ?? "") \(zipName ?? "") \(localityName ?? "")")
      viewController.addressArray = addressArray
      navigationController?.pushViewController(viewController, animated: true)
  }
  }
  </code></pre>
  
  <p>Then here I am adding values to <code>addressArray</code> from <code>NewZoomAddressViewController</code> like below:</p>
  
  <pre><code>class Add_EditAddressViewController: UIViewController,DataEnteredDelegate {
  @IBOutlet var addressEDITTableview: UITableView!
  
    var addressArray = [String]()
  override func viewDidLoad() {
      super.viewDidLoad()
      addressEDITTableview.register(UINib(nibName: "EditAddressTableViewCell", bundle: nil), forCellReuseIdentifier: "EditAddressTableViewCell")
      addressEDITTableview.reloadData()
  
  }
  }
  extension Add_EditAddressViewController : UITableViewDelegate,UITableViewDataSource {
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      return addressArray.count
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
      let cell: EditAddressTableViewCell = tableView.dequeueReusableCell(withIdentifier: "EditAddressTableViewCell") as! EditAddressTableViewCell
      cell.nameHeader.text = "header"
      cell.addressLabel.text = addressArray[indexPath.row]//"\(city) \(pincode) \(locality)"
  
      return cell
  }
  }
  </code></pre>
  
  <p>However, in the table view I am only getting one row. The first time, the single row is okay, but if I add another address - the row is replaced with the new address, and I am no longer getting the old address. How do I show all of the added addresses in the table view?</p>