title: ios Reloading TableView
body: <p>I am editing the Email on the second viewController. The Label.text(in ViewController) does change if i modify the email address in the second view(tableViewBudget), but the table view Cell does not change. It always shows the first value of savedEmail.text. How can I modify my code so that tableView cell will change when i change the string in the other table View? Thank You!</p>
  
  <pre><code>import UIKit
  
  class ViewController:UIViewController,UITableViewDataSource,UITableViewDelegate {
  
      @IBOutlet weak var savedEmail: UILabel!
  
      override func viewDidLoad() {
          super.viewDidLoad()
       }
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
      }
  
      @IBAction func exitToHere ( sender: UIStoryboardSegue){
      }
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return 1
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "cell")!
          cell.textLabel?.text = savedEmail.text
          return cell
      }
  }
  </code></pre>
  
  <p><strong>Second View Controller</strong></p>
  
  <pre><code>import UIKit
  
   class TableviewBudget: UIViewController {
  
      @IBOutlet weak var emailField: UITextField!
  
      override func viewDidLoad() {
          super.viewDidLoad()
      }
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
      }   
      @IBAction func updateEmail(_ sender: Any) {
          (presentingViewController as! ViewController).savedEmail.text =
              self.emailField.text
      }
  
      @IBAction func hideKeyboard(_ sender: Any) {
          self.emailField.resignFirstResponder()
      }
      override func viewWillAppear(_ animated: Bool) {
          self.emailField.text = (presentingViewController as! ViewController).savedEmail.text
  
          super.viewWillAppear(animated)
      }
  
  }
  </code></pre>