The requirement is that the button should be displayed sticking to the bottom of screen whether the table has 2 rows or 5 rows. If in any case, there should be a gap from the end of last row to the button at the bottom of the screen. How can this be achieved. Thank you.
Asked
Active
Viewed 615 times
0
-
instead of table view controller use table view, and add button as subview to bottom of screen.For gap i guess you need to place button on view controller view instead adding on table view. – Tushar Sharma Sep 29 '17 at 20:03
-
Possible duplicate of [How can I make the footerview always stay at the bottom in UITableViewController?](https://stackoverflow.com/questions/34610044/how-can-i-make-the-footerview-always-stay-at-the-bottom-in-uitableviewcontroller) – Bharath Sep 29 '17 at 21:37
1 Answers
0
You can't use UITableViewController. Use UIViewController and add table view on it. And add button below tableView. Add constraint to button, and stick it to superview bottom

maxkoriakin
- 337
- 3
- 7