How do I add a view below the table view, but it scrolls with the cells?
I need a table view that has very simple cells. However, at the end of the cells (if any), I want to show a button and some labels (let this infoView). I want the infoView to scroll the table.
If there are 20 lines, for example, the infoView will not be displayed until the user scrolls all the way down. It will act like a cell.
Is there a way to achieve this in an easy way? Does infoView have to be a cell?
source to share
For UITableView
you need TableFooterView
.
If you are using a storyboard, you probably have prototypes. Just select a view and place it below these cells as shown in the following image:
Now this view will act like TableFooterView
. You can resize it and add whatever you want, and these components will appear at the bottom UITableView
when the user scrolls all the way to the end.
source to share