There is a TableViewController, and I need to have a text box at the very bottom of the screen. Those. This text field should always remain at the bottom of the screen when scrolling through a table. The table will display comments. A text box is needed to enter your comment.

The problem is that if I drag a TextField onto a table controller in a storyboard, it is added directly under the cell. I can not tie it to the bottom of the screen.

Or TableViewController is not suitable for my task?

    1 answer 1

    Perhaps in your case the use of containers will be more convenient and flexible option:

    enter image description here

    And arrange as you like in Storyboard :

    enter image description here

    • Did not quite understand how to use it. I can not do it like in the picture. I drag the Container View onto the table, but the container is still attached under the cell and I can't move it down. - cheerful_weasel
    • I can't do this. Container View if I drag a storyboard to an empty space, it does not remain there. If I create a View Controller and throw a container into it, and then try to throw this container to the Table View Controller, this time the table controller does not want to be placed there. - cheerful_weasel
    • Well, I have already found another solution. I use UITableView instead of the controller. - cheerful_weasel