Q:

Accessing a UIButton in a custom UITableViewCell

I am very puzzled. 
In my cellForRowAtIndexPath method, I am trying to set a UIButton title:
Not working:
  cell?.react?.setTitle("\(currentObject.likes)", forState: UIControlState.Normal)

where react is a UIButton, that is a subview of my UITableViewCell subclass. 
I can't seem to update the title of my UIButton at all. The only way I have found to modify it is through the UITapGestureRecognizer in my UITableViewCell subclass, 
Working:
func reaction(button : UIButton) {
    if button.imageView?.image == UIImage(named: "ic_favorite.png") {
        button.setImage(UIImage(named: "ic_favorite_border.png"), forState: UIControlState.Normal)
    } else {
    button.setImage(UIImage(named: "ic_favorite.png"), forState: UIControlState.Normal)
    }
}

A:

Create a custom cell (say myCell), add the button as an @IBOutlet, then type this let cell = tableView.dequeueReusableCellWithIdentifier("yourIdentifier", forIndexPath: indexPath) as! myCell.
Your problem I think is that you haven't linked the button to the cell & XCode doesn't know which button you are talking about.

