sooper
sooper

Reputation: 6039

How to fix the position of the tableFooterView

I have a UITableViewController where the user taps an 'Edit' button (already in the tableHeaderView) and once they're in editing mode, the tableFooterView with a 'Delete' button.

My issue is that the footer scrolls with the table. Is there any way I can make the position fixed (or possibly a different way of doing this)?

Upvotes: 3

Views: 1197

Answers (1)

MByD
MByD

Reputation: 137442

Create two UIViews, and put the UITableView in the upper one:

+-------------------+
|  +-------------+  |
|  |             |  |
|  |             |  |
|  |    Table    |  |
|  |             |  |
|  |             |  |
|  |             |  |
|  +-------------+  |
|   regular view    |
+-------------------+
|      footer       |
+-------------------+

Upvotes: 3

Related Questions