title: Stop the reuse of custom cells Swift
body: <p>I have an <code>uitableview</code> with a custom cell which gets data from the array.
  Custom cell has an <code>uilabel</code> and an <code>uibutton</code> (which is not visible until the <code>uilabel</code> text or the array object which loads for the text - is nil).</p>
  
  <p>On launch everything is fine. When i press the <code>uibutton</code> the array is being appended, the new cells are being inserted below the cell.</p>
  
  <p>But when i scroll - all of a sudden the <code>uibutton</code> appears on other cells where this conditional <code>uilabel text isEmpty</code> is not implied. </p>
  
  <p>Here is how the whole process looks like
  <a href="https://i.stack.imgur.com/elRpF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/elRpF.png" alt="enter image description here"></a></p>
  
  <p>Here is my code for cellForRowAtIndexPath</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath:    NSIndexPath) -&gt; UITableViewCell  {
  
      var cell:TblCell = self.tableView.dequeueReusableCellWithIdentifier("cell") as! TblCell
      cell.lblCarName.text = someTagsArray[indexPath.row]
  
      if let text = cell.lblCarName.text where text.isEmpty {
          cell.act1.hidden = false
      } else {
          println("Failed")
      }
  
      cell.act1.setTitle(answersdict[answersdict.endIndex - 2], forState:UIControlState.Normal)
      cell.act2.setTitle(answersdict.last, forState:UIControlState.Normal)
  
      return cell
  }
  </code></pre>
  
  <p>So my general question is how do i stop the reuse of those custom cells?
  As far as i'm aware there is no direct way of doing this on <code>reusablecellswithidentifier</code> in swift, but maybe there are some workarounds on that issue?</p>