title: iOS Swift, Update UITableView custom cell label outside of tableview CellForRow using tag
body: <p>Setup (Swift 1.2 / iOS 8.4):</p>
  
  <p>I have UITableView custom cell (identifier = Cell) inside UIViewController. Have two buttons (increment/decrement count) and a label (display count) inside the custom TableView cell.</p>
  
  <p>Goal:</p>
  
  <p>Update the label as we press the increase count or decrease count button. </p>
  
  <p>At present I am able to get the button Tag and call a function outside of the CellForRowAtIndexPath. The button press increases and decreases the count. But I am not able to display the count update in the label.</p>
  
  <pre><code> func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell:FoodTypeTableViewCell = self.tableView!.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! FoodTypeTableViewCell
  
      cell.addBtn.tag = indexPath.row // Button 1
      cell.addBtn.addTarget(self, action: "addBtn:", forControlEvents: .TouchUpInside)
  
      cell.subBtn.tag = indexPath.row // Button 2
      cell.subBtn.addTarget(self, action: "subBtn:", forControlEvents: .TouchUpInside)
  
      cell.countLabel.text = // How can I update this label
      return cell
  }
  
  func addBtn(sender: AnyObject) -&gt; Int {
      let button: UIButton = sender as! UIButton
      count = 1 + count
      println(count)
      return count
  }
  
  func subBtn(sender: AnyObject) -&gt; Int {
      let button: UIButton = sender as! UIButton
      if count == 0 {
          println("Count zero")
      } else {
          count = count - 1
      }
      println(count)
      return count
  }
  </code></pre>
  
  <p>I have seen this question here and there but was not able to find a clear answer in Swift. I would really appreciate if you could help answer it clearly so that other people can not just copy, but clearly understand what is going on.</p>
  
  <p>Thank you.</p>