I am very new to Swift and Xcode. I am trying to make a UIButton appear at the right side of a tableView cell once the user presses the return key. Right now I am just having problems having a button appear in general. 

From my understanding here is my custom class TextInputTableViewCell which I believe should create a button:

```
class TextInputTableViewCell: UITableViewCell {

@IBOutlet weak var textField: UITextField!
var cellButton: UIButton!

func createCellButton()
{
    let image = UIImage(named: "Completed Circle.png")
    cellButton = UIButton(frame: CGRect(x: 340, y: 56, width: 30, height: 30));
    cellButton.setBackgroundImage(image, for: UIControlState.normal)
    addSubview(cellButton)
}

```

And then here is where I configure the properties of the cell in my ViewController class:

```
   func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
{

    let cell = self.tableView.dequeueReusableCell(withIdentifier: "cell")! as! TextInputTableViewCell
    cell.textField.delegate = self
    cell.backgroundColor = UIColor.clear //to get background image loaded
    cell.createCellButton()

    return cell
}

```

I know I am probably messing something up. Also, any tips on how to make the appear after the user presses enter would be appreciated. I have the textFieldShouldReturn function set up.