title: How to increment label by one every time a button is pressed?
body: <p>Developing in Swift for iOS, I have created an array of Ints that I have labeled <code>amount</code>. Each Int in the array represents a total number for a specific item (first item in <code>amount</code> represensts total of cars, 2nd total of buses, 3rd bikes, and so on). Using a table view, I have placed a button and label inside of the table view cell. In the table view, I want the first cell's label to display the first Int in the <code>amount</code> , the second cell's label to display the second Int in <code>amount</code> , third cell's label to display third Int in the <code>amount</code>, and etc. I want it to function as follows, every time the button is touched up inside I want to corresponding label to increase it's display total by one. For example, if the button is tapped 7 times in the third cell, I want the third cell's label to display the Int 7. If the button is tapped 2 times in the fifth cell, I want the fifth cell's label to display the Int 2. What would be the best way to go about this and accomplish this?</p>
  
  <pre><code>@IBOutlet weak var flavorTable: UITableView!
  
  //this is the array that I want to contain the Ints to display in each cell's label, 1st cell should display amount[0], 2nd cell amount[1], etc.
  var amount = [Int]()
  
  
  func bookieButton(_ sender: UIButton) {
      //this is where code that I want to increment the cell's label by one every time it is pressed but I'm unsure how to do so
  
   }
  
  
    public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell
  {
      let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as! FlavorCellTableViewCell
  
  
        return cell
  
  }
  </code></pre>