title: add a row to the tableView from another viewController
body: <p>what I did so far:</p>
  
  <p>I create a tableView controller with empty rows, and a popup window on another ViewController, the purpose of the popup is to add two data(name - link) to the tableView on one ROW (passing Textfields).</p>
  
  <p>what I want :</p>
  
  <p>when I add a new raw (name - link) click save , I want the data to be stored , when I add other data, create another row .</p>
  
  <p>my problem: when I tray to add more raws, it's always wright over the old one, so no matter how much data I input, the result always be 1 row!</p>
  
  <p><a href="https://i.stack.imgur.com/rHCWe.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHCWe.gif" alt="enter image description here"></a></p>
  
  <p>popup VC</p>
  
  <pre><code>@IBOutlet weak var nameP: UITextField!
  
  @IBOutlet weak var linkP: UITextField!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  }
  
  override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  
      let SEC: TEstVC  = segue.destination as! TEstVC
      SEC.add(name: nameP.text!, link: linkP.text!)
  }
  </code></pre>
  
  <p>HomeScreen VC </p>
  
  <pre><code>class TEstVC: UIViewController, UITableViewDelegate, UITableViewDataSource {
  
  
  
  @IBOutlet weak var tableView: UITableView!
  
  var names = [String]()
  var links = [String]()
  
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      self.tableView.rowHeight = 100.0
      tableView.dataSource = self
      tableView.delegate = self
  }
  
  func add(name: String, link: String) {
      names.append(name)
      links.append(link)
  }
  
  override func viewWillAppear(_ animated: Bool) {
  
  
  }
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return names.count //or links.count
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! TableViewCell
      cell.cell4Name.text = names[indexPath.row]
      cell.cell4Link.text = links[indexPath.row]
  
      return cell
  }
  </code></pre>