Question

I'm wondering if there's a possibility to set a fix position for a toolbar, for example:

In my UIViewController I got an UITableView and an UIToolbar. If the table view have 50 rows, how can I set the toolbar is always at the bottom of the view, so that I don't have to scroll down first to get to the toolbar. The toolbar should be shown at anytime.

I hope you know what I mean and thanks in advance for your answers.
Sean

Was it helpful?

Solution

If you have a UINavigationController, and 2.x compatibility is not required, you should use the toolbarItems property to create a toolbar attached to the controller.

See also What's the right way to add a ToolBar to a UITableView?.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top