Search code examples
iosobjective-cstoryboarduitoolbar

Cannot add Toolbar end of screen


I'm trying to add a Toolbar in interface builder in the following View:

enter image description here

However, when adding the toolbar, it is not going at the bottom of the screen but is like this: enter image description here

As a result, at runtime, the toolbar is appearing like a row in the table.

Any suggestion why the toolbar is not going at the end of the screen and how can I solve this?


Solution

  • It seems you are adding toolbar inside table view,

    1. If you want to add it at bottom, please add it outside tableView.
    2. If you want it inside table view you can use viewForFooter delegate.