title: How to change Labels and Table View from another Class?
body: <p>I made an application, this application have a couple of functions. It has <code>Table View</code>, <code>Labels</code>, <code>Buttons</code> etc. I made a <code>Picker View</code> in a class called <code>SettingsViewController</code> that is useful for choosing language. I made it and it's working good but I don't know how to change text of <code>Table View</code> and <code>Labels</code> of other classes. I'm not to experienced in calling classes. </p>
  
  <p>This is my class <code>SettingsViewController</code>:</p>
  
  <pre><code>import Foundation
  import UIKit
  
  class SettingsViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {
  
  var languages = ["English", "German", "French"]
  
  var selectedLanguage = 0
  
  @IBOutlet var languageLabel: UILabel!
  
  @IBOutlet var topPartView: UIView!
  @IBOutlet weak var languagePicker: UIPickerView!
  @IBOutlet var SubmitLanguageButton: UIButton!
  
  @IBAction func pickLanguageButton(sender: AnyObject) {
      //Show Picker
      topPartView.hidden = false
      languagePicker.hidden = false
      SubmitLanguageButton.hidden = false
  }
  
  @IBAction func submitLanguageButton(sender: AnyObject) {
      //Hidde Picker
      topPartView.hidden = true
      languagePicker.hidden = true
      SubmitLanguageButton.hidden = true
  
      if (selectedLanguage == 0) {
         languageLabel.text = "English"
      }
      else if (selectedLanguage == 1) {
         languageLabel.text = "German"
      }
      else if (selectedLanguage == 2) {
         languageLabel.text = "French"
      }
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view.
  
  
      topPartView.hidden = true
      languagePicker.hidden = true
      SubmitLanguageButton.hidden = true
  
      languagePicker.delegate = self
      languagePicker.dataSource = self
  
  }
  
  func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String? {
      return languages[row]
  }
  
  func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
      return languages.count
  }
  
  // returns the number of 'columns' to display.
  public func numberOfComponentsInPickerView(pickerView: UIPickerView) -&gt; Int {
      return 1
  }
  
  func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
  
      selectedLanguage = row
  }
  }
  </code></pre>
  
  <p>Another random <code>ViewController</code> with <code>Table View</code> and <code>Label</code>:</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
  
  let foodList:[String] = ["Apple", "Bread", "Phineapple", "Water", "Other"]
  
  @IBOutlet weak var myTableView: UITableView!
  
  @IBOutlet var foodTitleLabel: UILabel!
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view.
  
      foodTitleLabel.text = "Food"
  
      myTableView.reloadData()
  
  }
  
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      var returnValue = 0
  
      return returnValue
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let myCell = tableView.dequeueReusableCellWithIdentifier("myCells", forIndexPath: indexPath)
  
  
      myCell.textLabel!.text = foodList[indexPath.row]
      myCell.textLabel!.numberOfLines = 0
      return myCell
  }
  }
  </code></pre>
  
  <p>So how I'm gonna change <code>Labels</code> and <code>Table View</code> from another class, because every text have to be on language that is chose in <code>SettingsViewController</code> ? 
  For ex: When user choose English, the text in all <code>ViewController</code>s have to be in English.
  When user choose French, the text in all <code>ViewController</code>s have to be in French.</p>
  
  <p>If this question was not clear, please inform me, I wil try to show more info. Thanks for your contribution.</p>