I want to set only one UITableCell
at the bottom of my UITableView
. Something like this:
+----------------+
| +------------+ |
| | cell 1 | |
| +------------+ |
| +------------+ |
| | cell 2 | |
| +------------+ |
| +------------+ |
| | cell 3 | |
| +------------+ |
| |
| |
| |
| |
| |
| |
| +------------+ |
| | Last cell | |
| +------------+ |
+----------------+
But I do not know how to achieve this.
I have looked at:
- How to position UITableViewCell at bottom of screen?
- How to position UITableViewCell to the bottom of TableView?
- How to align UITableViewCell to the bottom of the UITableView?
but all of them are to set all the cells at the bottom of the UITableView
and I am not able to do it for only one cell.
Is it possible to set the last cell at the bottom of the UITableView
? How can I achieve it?
EDIT: I have tried with two sections as comments suggested but it duplicates the space for cell 1
, cell 2
and cell 3
on the second section.
I want that the second section will only have Last cell
and not the space equals to the height of the rest of cells. After that, I want to add a specific space to the footerView of the first section.
Thanks in advance!