Anchor the bottom of my tableview to the top of my container view
<p>I was searching about how can I anchor the bottom of my tableview to the top of my container view, which is in the bottom of my view, so when I press the textfield, the container view shows up, which has a textfield and a button. But how can I see the bottom of my tableview while I'm writing a message in the container view? Something like scroll automatically to the bottom of the tableview when the container with the textfield and the button shows up, so I can see the last cells.</p>

<p>Here is the code of the container view:</p>

<pre><code>lazy var inputTextField: UITextField = {
    let textField = UITextField()
    textField.placeholder = "Enter message..."
    textField.translatesAutoresizingMaskIntoConstraints = false
    textField.delegate = self

    textField.frame.size.width = 150.0
    return textField
}()


lazy var sendButton: UIButton = {
    let boton = UIButton(type: .System)
    boton.setTitle("Delete", forState: .Normal)
    boton.translatesAutoresizingMaskIntoConstraints = false
    boton.addTarget(self, action: #selector(handleSend), forControlEvents: .TouchUpInside)
    return boton

}()

 // MARK: container

lazy var inputContainerView: UIView = {

    let containerView = UIView()
    containerView.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: 50)
    containerView.backgroundColor = UIColor.whiteColor()

    containerView.addSubview(self.inputTextField)
    containerView.addSubview(self.sendButton)

   //I added some constrains to the textfield and the button

    return containerView
</code></pre>

<p>Also I have this methods:</p>

<pre><code>override var inputAccessoryView: UIView? {
    get {
        return inputContainerView
    }
}

override func canBecomeFirstResponder() -&gt; Bool {
    return true
}
</code></pre>

<p>So, how can I do it?</p>